8000 GitHub - nbearson/grain: python UTC<->TAI conversion package
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nbearson/grain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grain is a super simple UTC<->TAI conversion package, made specifically for handling pesky leap seconds.

Requires:

  • setuptools
  • updates when new leap second files come out

Example usage:

from grain import Grain
from datetime import datetime
g = Grain()
now = datetime.utcnow()
unix = datetime(1970, 1, 1)
seconds_since_unix_epoch = g.utc2tai(now, unix)

About

python UTC<->TAI conversion package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0