Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time intervals

Status
Not open for further replies.

sbayeta

Programmer
Apr 4, 2003
13
AR
Hi,
What's the right way to store time intervals in a table ?
I have a field that stores the start time of a user session , and a second field to store the session duration.
The duration field isn't a date, but a time interval, so I was thinking maybe it's a better idea to store it as an int (number of seconds).
I'm using this DB in a JAVA program, and I'm getting some troubles to show the values correctly-
What do you think is the best approach, considering duration will never be greater than 18 hours ?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top