Skip to main content

Django-Rest API for convert: Gregorian, Long Count, Haab and Tzolkin dates

Project description

Django Rest API for convert Mesoamerican Long Count calendar
to Gregorian ``_ dates


Install using ``pip``:

$ pip install django-rest-tzolkin

...or clone the project from github:

$ git clone

Django and Django-Rest-Framework are required packages


put url(r'^API', include('tzolkin.urls')) into your

start/ or restart your test server


Tzolkin2Gregorian Converter means that will convert long count date in format
baktun.katun.tun.uinal.kin ( to gregorian date 2012-12-21 (Y-m-d)

example url and long count:
JSON result

Gregorian2Tzolkin Converter means that will convert gregorian date 2012-12-21
(Y-m-d) (supported formats are Y/m/d, Y-m-d, Ymd) to Long count,

includind Haab date and of course The Tzolkin or Sacred Mayan Calendar

example url and gregorian date in format Ymd
JSON result

So that's all, have fun with The Tzolkin or Sacred Mayan Calendar : )

Project details

Download files

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

Files for django-rest-tzolkin, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size django-rest-tzolkin-0.3.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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