Loading...
Select Version
&pagelevel(4)&pagelevel
The time functions ctime
, difftime
, ftime
, gmtime
, localtime
, mktime
and time
by default use 1/1/1970 00:00:00 as the reference date (epoch). As a result, the specified time functions supply correct results from 12/13/1901 20:45:52 up to 1/19/2038 03:14:07. This is the behavior when using the link switch TIMESHIFT in CRTE versions since V2.9A (see also “SYSLNK.CRTE.TIMESHIFT library” in section "Libraries of the C runtime system").
If you require the default behaviour of CRTE versions up to V2.9 or of V10.0A or 11.0A for the mentioned time functions, you have to use the link switch TIME50 (see also “SYSLNK.CRTE.TIME50 library” in section “Libraries of the C runtime system").