Mayan calendar: Difference between revisions

Content deleted Content added
Rdm (talk | contribs)
m J: slightly more concise
Rdm (talk | contribs)
J: rudimentary comments
Line 536: Line 536:


gmt=: >@(fmtDate;round;longcount)@todayno</lang>
gmt=: >@(fmtDate;round;longcount)@todayno</lang>

J's <tt>todayno</tt> counts days from January 1, 1800. And, each of these date formatting routines expects a number generated by todayno, with hard coded offsets, if necessary, to make this work. (The lord of night number uses an offset of zero, in this context.)

Also, in haab, our 'chum' days are zeros from modulo arithmetic (and, thus, belong to the previous month).


Task examples:
Task examples: