#date-time #timezone #date #time #calendar #env-var

timens

Simple and efficient library for timestamp and date manipulation

9 releases

0.1.9 Mar 8, 2023
0.1.8 Jan 10, 2023
0.1.7 Dec 30, 2022
0.1.5 Nov 10, 2022
0.1.1 Nov 28, 2021

#139 in Date and time

44 downloads per month
Used in tboard

MIT/Apache

620KB
10K SLoC

C 7K SLoC // 0.2% comments Rust 2K SLoC // 0.0% comments AWK 1K SLoC // 0.2% comments Korn shell 583 SLoC // 0.1% comments Shell 32 SLoC // 0.1% comments

timens-rs

Simple and efficient timestamp representation. The main objective being interoperability with OCaml Core_kernel.Time_ns.

Build Status Latest version Documentation License

A significant part of the code has been adapted from the OCaml Core_kernel implementation.

The set of supported timezones can be filtered using the TIMENS_TZ_FILTER environment variable, e.g.:

TIMENS_TZ_FILTER="London|New_York|Hong_Kong|Tokyo|GMT" cargo build

The tz repo is included as a git subtree, this can be updated via:

git subtree pull --prefix tz https://github.com/eggert/tz.git main --squash

Dependencies