travisgoodspeed / goodwatch

Replacement board for Casio Calculator Watches using the CC430F6147
502 stars 55 forks source link

Hebrew Calendar #140

Closed travisgoodspeed closed 4 years ago

travisgoodspeed commented 4 years ago

As the first watch with a radio transceiver that is arguably kosher for shabbat (#101), it would be nice if the watch could also display dates in the Hebrew calendar. Because mistakes might easily be left unfound for years, the test case should compare dozens of calendar dates across the next several years with a host-side library.

The RTC will remain in the standard calendar, with conversions performed as necessary to show the date.

Examples: ynd cal-hebrew.el from emacs Hebrew Calendar

Features:

travisgoodspeed commented 4 years ago

Shavua tov!

I've ported the example from ynd and added test cases. The test suite also displays the current day, month, year, and day of week for manual verification.

% ./libs/hebrew 
Gregorian: 2020.01.19, DOW=0
Days since 1900: 43847
Hebrew: 22    Tevet 5780,   Rishon