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


gsk_rdtime()

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

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

Format

#include <gskcms.h>

gsk_timeval * gsk_rdtime (
                          gsk_time            secs,
                          gsk_timeval *       ts)

Parameters

secs
Specifies the time value to be converted.
ts
Returns the converted time in the tm_year, tm_mon, tm_mday, tm_hour, tm_min, and tm_sec fields.

Usage

The gsk_rdtime() routine converts the number of seconds since the POSIX epoch (January 1, 1970) to year/month/day format. The year value is the actual year minus 1900 and the month value is the actual month minus 1 (that is, January is 0 and December is 11). The return value is the same as the second parameter (the address of the struct tm).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014