Django-Rest API for convert: Gregorian, Long Count, Haab and Tzolkin dates
Project description
=============================
Django Rest API for convert Mesoamerican Long Count calendar
`<http://en.wikipedia.org/wiki/Mesoamerican_Long_Count_calendar>`_
to Gregorian `http://en.wikipedia.org/wiki/Gregorian_calendar`_ dates
Installation
------------
Install using ``pip``:
$ pip install django-rest-tzolkin
...or clone the project from github:
$ git clone https://github.com/dimddev/django-rest-tzolkin
Django and Django-Rest-Framework are required packages
Config
------
put url(r'^API', include('tzolkin.urls')) into your urls.py
start/ or restart your test server
Usage
-----
Tzolkin2Gregorian Converter means that will convert long count date in format
baktun.katun.tun.uinal.kin (13.0.0.0.0) to gregorian date 2012-12-21 (Y-m-d)
example url and long count:
http://your_test_ip/API/v1/ancient/calendars/mayan/tzolkin2gregorian?date=13.0.0.0.0
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 13.0.0.0.0,
includind Haab date and of course The Tzolkin or Sacred Mayan Calendar
example url and gregorian date in format Ymd
http://your_test_ip/API/v1/ancient/calendars/mayan/gregorian2tzolkin?date=20011012
JSON result
So that's all, have fun with The Tzolkin or Sacred Mayan Calendar : )
Django Rest API for convert Mesoamerican Long Count calendar
`<http://en.wikipedia.org/wiki/Mesoamerican_Long_Count_calendar>`_
to Gregorian `http://en.wikipedia.org/wiki/Gregorian_calendar`_ dates
Installation
------------
Install using ``pip``:
$ pip install django-rest-tzolkin
...or clone the project from github:
$ git clone https://github.com/dimddev/django-rest-tzolkin
Django and Django-Rest-Framework are required packages
Config
------
put url(r'^API', include('tzolkin.urls')) into your urls.py
start/ or restart your test server
Usage
-----
Tzolkin2Gregorian Converter means that will convert long count date in format
baktun.katun.tun.uinal.kin (13.0.0.0.0) to gregorian date 2012-12-21 (Y-m-d)
example url and long count:
http://your_test_ip/API/v1/ancient/calendars/mayan/tzolkin2gregorian?date=13.0.0.0.0
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 13.0.0.0.0,
includind Haab date and of course The Tzolkin or Sacred Mayan Calendar
example url and gregorian date in format Ymd
http://your_test_ip/API/v1/ancient/calendars/mayan/gregorian2tzolkin?date=20011012
JSON result
So that's all, have fun with The Tzolkin or Sacred Mayan Calendar : )
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-rest-tzolkin-0.3.tar.gz
.
File metadata
- Download URL: django-rest-tzolkin-0.3.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26da4fa15d4f2dbfbfd75d0d26d172d19e5a1e21da229c4a2730fd2aaa1d9351 |
|
MD5 | d1850cf0d148858001059480070cb71f |
|
BLAKE2b-256 | c5a023f84299de52ab4d5748c067e88b399d54baa8955d6f31ffe3a1a46831d7 |