mdate1
A command-line mayan date utility
Usage
mdate []
[-d
day
month
[-]
year]
[-j
julian
day
number]
[-l
mayan
long
count]
[{-h | ?}]
[-v]
Overview
mdate with no arguments prints the Mayan Long Count for the current date. For most options, it will return Mayan Long Counts also.
Options
mdate-
Returns the current Mayan Long Count for today.
- -d day month year
-
Enter a day month year in the form dd mm yyyy Gets the Mayan Long Count for the date specified. The year may be negative for BC dates. Gregorian dates are always returned.
- -j <julian day number>
-
Enter a number with a decimal point eg
mdate-j 584285.0. Gets the Mayan Long Count on a specified Julian Date.
- -l <mayan long count>
-
Enter a Mayan Long Count in the form baktun katun tun kin uinal eg
mdate-l 12 19 7 8 0 Gets the Gregorian Date on a specified Long Count.
-
-? -h -
Displays the version and help for
mdate
-
-v -
Displays the version of
mdateand exits.
Examples
To get today's date
-
mdate
To get today's date using the day month year arguments
-
mdate -d 24 03 1999
To get the current Mayan Long Count using today's Julian Day Number
-
mdate -j 2451215.0
To get today's date using the current Mayan Long Count
-
mdate -l 12 19 5 16 12
Notes
If compiled with the --with-tkmdate option, mdate ´s command-line output is simplified to a one-liner for easier parsing by tkmdate(1) as well as future output interfaces.
Files
Mdate doesn't require any specific files.
Contributors
CDR <[email protected]>