Unit 'DateUtils' Package
[Overview][Constants][Classes][Procedures and functions][Index] [#rtl]

DateTimeToUnix

Convert a TDateTime value to Unix epoch time.

Declaration

Source position: dateutil.inc line 434

function DateTimeToUnix(

  const AValue: TDateTime;

  AInputIsUTC: Boolean = True

):Int64;

Arguments

AValue

  

TDateTime value to convert.

Function result

Unix epoch time corresponding to AValue.

Description

DateTimeToUnix converts a TDateTime value to a epoch time (i.e. the number of seconds elapsed since 1/1/1970).

See also

UnixToDateTime

  

Convert Unix epoch time to a TDateTime value.


Documentation generated on: Dec 24 2024