« Deconstructing the standard photo carousel into general-purpose web components | Main

August 04, 2014

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451fb6769e201a511ed788f970c

Listed below are links to weblogs that reference Delegate brain-melting date math and localization to general-purpose calendar web components:

Comments

Yair

The Hebrew calenders you saw are probably left to right for practical reasons. I have seen some which are RTL. Usually, the calendars cover a Hebrew year with some slack (so roughly August-October), but each page covers a Gregorian month and the Hebrew dates and holidays are marked, but are smaller than the numbers. This is probably because most people use the Gregorian calender for almost everything, so having the numbers go from left to right also makes sense (although, again, I have seen counter-examples).

Incidentally, you could complicate it even more if you added actual support for alternative calendars, such as the Hebrew or Islamic calendars. You would have different year and month names, different month lengths, supporting dates as letters instead of numbers, etc. In the Hebrew calendar, for instance, each third or fourth year has 13 months (the months are lunar, so you wouldn't need your lunar chart, because the moon is always full in the middle of the month, but that requires adding the month to prevent drift from the solar cycle). And this month is added in the middle of the year (it was the end of the year in one of the alternative ways of looking at the year, but that's not really used any more, so now it's the middle of the year).

Jan Miksovsky

Yair: Thanks for the insight into Hebrew calendars! For the initial implementation, I made a deliberate decision to focus on Gregorian calendars. My assumption is that most businesses supporting users in multiple languages/countries would end up standardizing on the Gregorian calendar. It would be fantastic if someone wanted to improve or extend these components to support non-Gregorian calendars. The Globalize library actually seems to have pretty good coverage of most calendar systems, including the Hebrew and Hijri (Islamic) calendars, so that might be a big help in implementing support for those calendars in these components.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.