24 Oct
2010
24 Oct
'10
1:05 p.m.
Sorry, I did not understand. My doubt is
if the 32bit input value is 70 (70 seconds since 1900), the output would be 1900-01-01, 00:01:10., and the day of week is Monday
By using the function "from_time_t " can we get this output?
time_t is number of seconds since 1/11970 If your input is the number of seconds since 1/1/1900, then before using from_time_t() you have to add the number of seconds between 1/1/1900 and 1/1/1970. IIRC, it's (70 * 365 + 17) * 86400