Skip to content
This repository was archived by the owner on Oct 16, 2021. It is now read-only.

ahauimix/python-mdate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-mayadate

Maya Date:

>>> m = mayadate.MayaDate(8, 3, 2, 10, 15)
>>> m
mayadate.MayaDate(8, 3, 2, 10, 15)

Human readable:

>>> str(m)
"8.3.2.10.15 2 Men 13 Pax"

Long Count:

>>> str(m.longcount)
'8.3.2.10.15'

Tzolkin:

>>> str(m.tzolkin)
'2 Men'

Haab:

>>> str(m.haab)
'13 Pax'

To Gregorian Date Conversion:

>>> g = m.todate()
>>> g
datetime.date(103, 5, 19)

TODO:

  • add year bearer
  • add lord of night
  • replace() method
  • publish on PyPI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%