C++ UnixTimestamp and readable time format -
i timestamp ansistring database in c++ application. looks "2017-09-12 09:35:10".
now want parse unix timestamp.
ansistring mydate = query->fields->fieldbyname("mydates")->asstring; tdatetime = strtodatetime(mydate);
in specific case following date: 2017-08-10 08:43:35
but unixtimestamp is: 42957.363599537
which 01-01-1970 12:55:57 calculated readable format.
what missing here?!...
you got not unix timestamp, tdatetime
. following builder's documentation :
the integral part of tdatetime value number of days have passed since 12/30/1899. fractional part of tdatetime value time of day.
in other case, unix timestump number of seconds 01.01.1970
Comments
Post a Comment