Other Alias
krb5_timeofday, krb5_set_real_time, krb5_us_timeofday, krb5_string_to_deltatLIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)SYNOPSIS
In krb5.hkrb5_timestamp
krb5_deltat Ft krb5_error_code Fo krb5_set_real_time Fa krb5_context context Fa krb5_timestamp sec Fa int32_t usec Fc Ft krb5_error_code Fo krb5_timeofday Fa krb5_context context Fa krb5_timestamp *timeret Fc Ft krb5_error_code Fo krb5_us_timeofday Fa krb5_context context Fa krb5_timestamp *sec Fa int32_t *usec Fc Ft krb5_error_code Fo krb5_format_time Fa krb5_context context Fa time_t t Fa char *s Fa size_t len Fa krb5_boolean include_time Fc Ft krb5_error_code Fo krb5_string_to_deltat Fa const char *string Fa krb5_deltat *deltat Fc
DESCRIPTION
krb5_set_real_time sets the absolute time that the caller knows the KDC has. With this the Kerberos library can calculate the relative difference between the KDC time and the local system time and store it in the Fa context . With this information the Kerberos library can adjust all time stamps in Kerberos packages.Fn krb5_timeofday returns the current time, but adjusted with the time difference between the local host and the KDC. Fn krb5_us_timeofday also returns microseconds.
krb5_format_time formats the time Fa t into the string Fa s of length Fa len . If Fa include_time is set, the time is set include_time.
krb5_string_to_deltat parses delta time Fa string into Fa deltat .