---
name: "tai_now"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tai_now"
---

# tai\_now(3)

get current time

## NAME

tai\_now - get current time

## SYNTAX

**#include \<libowfat/tai.h\>**

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

## DESCRIPTION

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

This implementation of tai\_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.

## SEE ALSO

[taia\_now(3)](/taia_now/3.md)
