Sign in Join
FPDoc Onlineexperiment

UnixToDateTime function

In unit DateUtils

Convert Unix epoch time to a TDateTime value.

Declaration

pascal
function UnixToDateTime(const AValue: Int64; aReturnUTC: Boolean=True)
: TDateTime

Arguments

AValue

Date to convert.

aReturnUTC

Function result

AValue as a TDateTime value.

Description

UnixToDateTime converts epoch time (seconds elapsed since 1/1/1970) to a TDateTime value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.