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

time

The input time value

day

Pointer for day value

month

Pointer for month value

year

Pointer for year value

hour

Pointer for hour value

minute

Pointer for minute value

second

Pointer for second value

Return Values

HASP_STATUS_OK

HASP_INV_TIME

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.

Related Topics

DatetimeToHasptime Function