Secs2Date
long secs ; the "raw" seconds value to convert
DateTimeRec *dtrp ; receives the corresponding date and time secs is a "raw" seconds value; i.e., a count of seconds since Midnight,
1/1/1904.
dtrp is the address of a 14-byte DateTimeRec structure. Upon return, its fields have been set to the year, month, day, hour, minute, second, and dayOfWeek corresponding to the value of secs. Leap
years, and other oddities of the calendar are handled correctly.
Notes: Secs2Date is useful for obtaining a palatable date and time from a raw seconds value. The former is handy for human consumption, the later is
handy for date and time calculations and comparisons. See Date2Secs for an example of usage.
seconds directly into a string.
Since the base date for the "raw seconds" value is 1/1/1904 and since secs
is a 32-bit value, you won't be able to calculate with dates beyond February
6, 2040.