z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


gsk_mktime()

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Converts year/month/day time value to number of seconds since the POSIX epoch

Format

#include <gskcms.h>

gsk_time gsk_mktime (
                     gsk_timeval *            ts)

Parameters

ts
Specifies the time to be converted. The tm_year, tm_mon, tm_mday, tm_hour, tm_min, and tm_sec fields are used to generate the converted time.

Results

The return value is the number of seconds since January 1, 1970. Leap seconds are not included in the computation.

Usage

The gsk_mktime() routine converts the time specified in year/month/day format to the number of seconds since the POSIX epoch (January 1, 1970). The gsk_mktime() routine differs from the mktime() routine in that the time is UTC and is not adjusted for the local timezone or for daylight savings time.

The year value must be between 1970 and 2106 and is the actual year minus 1900, so tm_year must be between 70 and 206, tm_mon must be between 0 and 11, tm_mday must be between 1 and 31, tm_hour must be between 0 and 23, tm_min must be between 0 and 59, and tm_sec must be between 0 and 59.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014