HasptimeToDatetime Function
Description
Converts a time value (elapsed seconds since January 1, 1970) into a date and time.
Syntax
hasp_status_t HASP_CALLCONV hasp_hasptime_to_datetime (
hasp_time_t time,
unsigned int * day,
unsigned int * month,
unsigned int * year, unsigned int * hour,
unsigned int * minute,
unsigned int * second,
)
Parameters
|
The input time value |
|
Pointer for day value |
|
Pointer for month value |
|
Pointer for year value |
|
Pointer for hour value |
|
Pointer for minute value |
|
Pointer for second value |
Return Values
Usage Notes
All values are based on Coordinated Universal Time (UTC). The converted date and time value reflects the number of elapsed seconds since January 1, 1970. This conversion function is used in conjunction with the API functions that set or retrieve values for the real-time clock (RTC) in the Sentinel HLTime, Sentinel HLNetTime, HASP HLTime, HASP HLNetTime and Sentinel SL keys.