DateTimeToUnix converts a TDateTime value into the corresponding Unix/Linux-style date-and-time value.
Unix/Linux date-and-time values are encoded as the number of seconds since midnight at the start of January 1, 1970.
Declaration: function DateTimeToUnix(const AValue: TDateTime; AInputIsUTC: Boolean): Int64;
A sample of code.