getasnumber
getasnumber |
Purpose
Convert a date, time or datetime into a number.
Synopsis
function getasnumber(d:date):integer
function getasnumber(t:time):integer
function getasnumber(dt:datetime):real
Arguments
d
|
A
date object
|
t
|
A
time object
|
dt
|
A
datetime object
|
Return value
The numerical representation of the argument.
Further information
A date is converted to an integer Julian Day Number (number of days since 1/1/1970 at midnight). This function returns an integer number of milliseconds for a time and a real number of seconds for a
datetime. This number represents the number of seconds and milliseconds (as the fractional part of the number) since 1/1/1970 at midnight.
Module