krb5_us_timeofday()--Get Current Time of Day in Seconds and Microseconds since the Epoch


  Syntax
 #include <krb5.h>

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

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_us_timeofday() function returns the current time of day in seconds and microseconds 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 seconds' portion of the result.

useconds  (Output)
The microseconds' portion of the result.

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
Top | Security APIs
UNIX-Type APIs | APIs by category