Re: Date and time on Cindu
From: | Mark J. Reed <markjreed@...> |
Date: | Monday, May 19, 2008, 19:26 |
OK, since there's some interest, I'll keep sending at least some of
this stuff to the list, but duly marked as OT.
For calculation purposes, I plan to represent a Cindu date as a list
of four integers: year (new count), month (1-16), week (1-4), day
(1-7).
Cinjurak is represented as day 8 of week 2.
A leap day before day 1 is represented as day 0 of week 1.
A leap day midmonth is represented as day 0 of week 3.
This keeps the dates in the proper order, including the blank days,
while maintaining the property that the day number within the month is
7*(week-1) + weekday.
I can easily convert a date in a non-leap year to an absolute day
count (that includes leap days in prior years); just working out the
easiest way to determine if there's a leap day in the year under
consideration prior to the date under consideration.
Reply