1.0.4 • Published 6 years ago

nahuales v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Nahuales

Build Status

Module to get the respective Mayan sign of the Tzolkin calendar of a gregorian calendar date.

The Tzolkin calendar is based on 20 signs called "Nahuales" and weeks of 13 days, we have used 1983-09-16 (YYYY-mm-dd) as an init date which corresponds to 1 B'atz', and the calendaric count moves 1 row down each day which means that if we want to know the nahual for 1983-09-20 which would be 4 days after the init date, the nahual would be 5 Tz'ikin, there would be a moment where the 13 week wont match the 20 signs so the cycle of 13 would start again in 1 and both cycle counts wont match until we reach 260 days (13*20) and the whole nahual count will start.

The Nahual names may vary depending on the region and variant of the Mayan language, the names used in this module are the post-conquest Guatemalan highland calendar names.

You can find more information about Tzolkin Calendar here, or if you want more detailed information there is a book called "Chʹumilal wuj".

Tzolkin Calendar table

Nahual name
B'atz'18293104115126137
E29310411512613718
Aj31041151261371829
Ix41151261371829310
Tz'ikin51261371829310411
Ajmak61371829310411512
No'j71829310411512613
Tijax82931041151261371
Kawoq93104115126137182
Ajpu10411512613718293
Imox11512613718293104
Iq'12613718293104115
Aq'ab'al13718293104115126
K'at18293104115126137
Kan29310411512613718
Kame31041151261371829
Kej41151261371829310
Q'anil51261371829310411
Toj61371829310411512
Tz'i'71829310411512613

Usage

$ npm install nahuales

This module accepts a date and will give you the exact nahual as an object.

On your project:

const newNahual = require('nahuales');
const date = new Date('1983-09-16');
const myNahual = newNahual.nahual(date);
console.log(myNahual);

It will print this on your terminal:

{ day: 1, nahual: 'B\'atz\'' }
1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago