BSD Ports

devel/libtai 0.60_7 DragonFly

Library for storing and manipulating dates and times

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
UNLICENSE
Categories
devel
Package size
23.2 KiB, 96.4 KiB installed

Description

libtai supports two time scales: (1) TAI64, covering a few hundred billion years with 1-second precision; (2) TAI64NA, covering the same period with 1-attosecond precision. Both scales are defined in terms of TAI, the current international real time standard.

libtai provides an internal format for TAI64, struct tai, designed for fast time manipulations. The tai_pack() and tai_unpack() routines convert between struct tai and a portable 8-byte TAI64 storage format. libtai provides similar internal and external formats for TAI64NA.

libtai provides struct caldate to store dates in year-month-day form. It can convert struct caldate, under the Gregorian calendar, to a modified Julian day number for easy date arithmetic.

This version of libtai requires a UNIX system with gettimeofday(). It will be easy to port to other operating systems with compilers supporting 64-bit arithmetic.

In the other systems

The newest version among them is 0.60, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/libtai0.60_7 newestnone known-[email protected]-
FreeBSDdevel/libtai0.60_7 newestnone known-[email protected]-
NetBSDdevel/libtai0.60nb8 newestnone known-[email protected]-
HardenedBSDdevel/libtai0.60_7 newestno data-[email protected]-
GhostBSDdevel/libtai0.60_7 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install libtai

From DPorts:

cd /usr/dports/devel/libtai && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Required by 1