I cannot find a solution to convert the following code to run under OSX. Does anybody know how I can get a unix timestamp (UTC) under OSX?
function GetUnixTimestamp: int64;
var
st: TSystemTime;
dt: TDateTime;
ut: int64;
begin
dt := SystemTimeToDateTime(st);
ut := DateTimeToUnix(dt);
result := ut;
end;