System.DateUtils.DateTimeToUnix
Delphi
function DateTimeToUnix(const AValue: TDateTime; AInputIsUTC: Boolean): Int64;
C++
extern DELPHI_PACKAGE __int64 __fastcall DateTimeToUnix(const System::TDateTime AValue, bool AInputIsUTC = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Converts a TDateTime value into a Unix/Linux-style date-and-time value.
Call DateTimeToUnix to convert a TDateTime value into the corresponding Unix/Linux encoding of the same date and time.
Unix/Linux date-and-time values are encoded as the number of seconds since midnight at the start of January 1, 1970.
See Also