krb5_timeofday()--Get Current Time of Day in Seconds since the Epoch


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_timeofday(
     krb5_context     context,
     krb5_timestamp *     seconds);   
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_timeofday() function returns the current time of day in seconds since the epoch (January 1, 1970). The returned time is calculated using the gettimeofday() routine. This means that the returned time is Coordinated Universal Time. The returned time also is adjusted for changes made to the software clock by the adjtime() or settimeofday() routines.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

seconds  (Output)
The number of seconds since the epoch.

Return Value

If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.



API introduced: V5R1

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]