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);

DateUtils

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. 

 

UnixToDateTime 

Convert

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!