1KRB5_TIMEOFDAY(3)        BSD Library Functions Manual        KRB5_TIMEOFDAY(3)
2

NAME

4     krb5_timeofday, krb5_set_real_time, krb5_us_timeofday, krb5_format_time,
5     krb5_string_to_deltat — Kerberos 5 time handling functions
6

LIBRARY

8     Kerberos 5 Library (libkrb5, -lkrb5)
9

SYNOPSIS

11     #include <krb5.h>
12
13     krb5_timestamp;
14
15     krb5_deltat;
16
17     krb5_error_code
18     krb5_set_real_time(krb5_context context, krb5_timestamp sec,
19         int32_t usec);
20
21     krb5_error_code
22     krb5_timeofday(krb5_context context, krb5_timestamp *timeret);
23
24     krb5_error_code
25     krb5_us_timeofday(krb5_context context, krb5_timestamp *sec,
26         int32_t *usec);
27
28     krb5_error_code
29     krb5_format_time(krb5_context context, time_t t, char *s, size_t len,
30         krb5_boolean include_time);
31
32     krb5_error_code
33     krb5_string_to_deltat(const char *string, krb5_deltat *deltat);
34

DESCRIPTION

36     krb5_set_real_time sets the absolute time that the caller knows the KDC
37     has.  With this the Kerberos library can calculate the relative differ‐
38     ence between the KDC time and the local system time and store it in the
39     context.  With this information the Kerberos library can adjust all time
40     stamps in Kerberos packages.
41
42     krb5_timeofday() returns the current time, but adjusted with the time
43     difference between the local host and the KDC.  krb5_us_timeofday() also
44     returns microseconds.
45
46     krb5_format_time formats the time t into the string s of length len.  If
47     include_time is set, the time is set include_time.
48
49     krb5_string_to_deltat parses delta time string into deltat.
50

SEE ALSO

52     gettimeofday(2), krb5(3)
53
54HEIMDAL                       September 16, 2006                       HEIMDAL
Impressum