---
name: "taia_now"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/taia_now/3diet"
---

# taia\_now(3diet)

get current time

## NAME

taia\_now - get current time

## SYNTAX

**#include \<taia.h\>**

extern int **taia\_now**(struct taia\* *t*);

## DESCRIPTION

taia\_now puts the current time into *t*. More precisely: tai\_now puts into *t* its best guess as to the TAI64NA label for the 1-attosecond interval that contains the current time.

This implementation of taia\_now assumes that the time\_t returned from the time function represents the number of TAI seconds since 1970-01-01 00:00:10 TAI. This matches the convention used by the Olson tz library in \`\`right'' mode.

Beware that many clocks are not set accurately, and even the best scientific clocks are nowhere near 1-attosecond accuracy; however, an inaccurate clock may still produce reasonably accurate time differences.

## SEE ALSO

[tai\_now(3)](/tai_now/3.md)
