Subject | Re: [firebird-support] TIME datatype |
---|---|
Author | Martijn Tonies |
Post date | 2009-02-06T07:17:03Z |
Hello Jerry,
means "time of day". TIMESTAMP is slightly better, but still, it's
"time of day and date on a calendar", a duration needs its own
datatype. Firebird does not yet have such a thing, so you can store
integers (to stored "seconds past since" or something).
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com
>You bring up a good point, Helen, about the time going past the 24 hourIf you want to store a "duration", then TIME just won't cut it, as it
>mark. The query that I am running was originally written with timestamps
>and it worked fine, I decided to play with the time data type for
>simplicity
>but I do need to get into the next day a few hours so I will be going back
>to what I originally was doing. I thought this might be a place to learn
>about the Time data type and it looked like it would make the coding
>cleaner
>and easier.
means "time of day". TIMESTAMP is slightly better, but still, it's
"time of day and date on a calendar", a duration needs its own
datatype. Firebird does not yet have such a thing, so you can store
integers (to stored "seconds past since" or something).
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com