![]() |
|||
|
|
|||
|
||||||||||||||||||||||||||||||
|
|
|
Looking for the original pages? (formerly called "Morgan's Library") You can find them here.
Term: TIMESTAMP
Definition: SELECT CAST(date1 AS TIMESTAMP) "Date" FROM t; Calculating the time difference between two TIMESTAMP datatypes is very straightforward- you just do straight subtraction of the two timestamp values. When doing subtraction between dates, remember that the result is a value that represents the number of days. Multiply that number by the number of seconds in a day (86400) to determine the interval or value that you want to find. For more detailed information on dates and timestamps, please see the Related Links below.
Related Links: Related Code Snippets:
|
| Home : Code Library : Sponsors : Privacy : Terms of Use : Contact Us | 36 users online © 2009 psoug.org |