Skip to main content

Converts TAI64(n) string to datetime.datetime (UTC) object.

Project description

A module to convert a hex encoded tai64n string to a datetime.datetime object and to convert between TAI and UTC standard time.

TAI, TAI64, TAI64n

TAI stands for Temps Atomique International, the current international real-time standard. One TAI second is defined as the duration of 9192631770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium atom.

http://cr.yp.to/libtai/tai64.html#tai64n

Module Functions

decode_tai64n("400000004a3239350292c294")
converts a 16 or 24 bytes long hex TAI64(n) string to a datetime.datetime UTC object
utc2tai(datetime.datetime.now())
converts datetime.datetime UTC object to a datetime.datetime TAI object

Project details


Release history Release notifications

This version
History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tai64n-0.3.3.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Jun 23, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page