RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.DateTimeToUnix Function

Converts a TDateTime value into a Unix/Linux-style date-and-time value.

Pascal
function DateTimeToUnix(const AValue: TDateTime): Int64;
C++
Int64 DateTimeToUnix(const TDateTime AValue);

Call DateTimeToUnix to convert a TDateTime value 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!