Initializing help system before first use

XPRMtime

XPRMtime


Purpose
Get the current date and time .
Synopsis
void XPRMtime(int *jdn, int *t,int *tz);
Arguments
jdn 
Returned Julian Day Number
Returned current time (in milliseconds)
tz 
Time zone. Possible values are:
XPRM_TIME_LOCAL 
Time is expressed in local time
XPRM_TIME_UTC 
Time is expressed in Coordinated Universal Time (UTC)
Return value
0 if successful, 1 otherwise.
Further information
1. This function returns the current date as a JDN (number of days since 1/1/1970) and a number of milliseconds since midnight. The JDN may be decoded using the function XPRMjdn2date.
2. The date returned by this function can be converted to a Unix time (type time_t) using the expression: jdn*86400+t/1000. Similarly a Windows file time (type FILETIME) can be obtained using: ((__int64)jdn+134774)*864000000000i64+(__int64)t*10000i64).
Related topics