GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — DATEDIFF() Using VoltDBDATEDIFF()DATEDIFF() — Returns the difference between two timestamps as an integer. SynopsisDATEDIFF( time-unit, timestamp, timestamp ) DescriptionThe DATEDIFF() function returns an integer value representing the difference between two timestamps for the specified time unit. Specifically, the second timestamp minus the first timestamp, measured in the specified unit. Note that both timestamps are converted to the specified time unit before the subtraction occurs. So, for example, the difference between Dec-31-1999 11:59 and Jan-01-2000 01:01 measured in days would be 1 day, but in hours it would be 2 hours, and in minutes 62 minutes. The valid time unit keywords are:
ExampleThe following example uses the DATEDIFF() function to return the number of whole minutes between the start and end of an event. INSERT INTO billing
(account_id, when, length)
SELECT user, start_time,
DATEDIFF(MINUTE,start_time, end_time)
FROM event; |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |