1taia_now(3) Library Functions Manual taia_now(3)
2
3
4
6 taia_now - get current time
7
9 #include <taia.h>
10
11 extern int taia_now(struct taia* t);
12
14 taia_now puts the current time into t. More precisely: tai_now puts
15 into t its best guess as to the TAI64NA label for the 1-attosecond
16 interval that contains the current time.
17
18 This implementation of taia_now assumes that the time_t returned from
19 the time function represents the number of TAI seconds since 1970-01-01
20 00:00:10 TAI. This matches the convention used by the Olson tz library
21 in ``right'' mode.
22
23 Beware that many clocks are not set accurately, and even the best sci‐
24 entific clocks are nowhere near 1-attosecond accuracy; however, an
25 inaccurate clock may still produce reasonably accurate time differ‐
26 ences.
27
29 tai_now(3)
30
31
32
33 taia_now(3)