Datetime Intrinsic Functions - AsSeconds Method

Return the variable as the number since midnight

Member of Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)


Name Type Data Type Description
Result *Result (Optional) Decimal Resulting number


AsSeconds returns the number of seconds since 00:00:00 for the specified time in the datetime as a decimal value including milliseconds.


In this example, a date time of 2014-12-31 12:34:56.8503 would return 45296.8503.
#Result := #DateTime.AsSeconds

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020