S. Isaac Dealey wrote: > not i18n, since many countries use Monday as their first day of week
there are 3 common week starts: sunday, monday (so called ISO) and saturday (islamic locales). > The java.util.Calendar class includes information to indicate if the > calendar for a given locale begins on sunday or another day, but all rather you would be using java.util.GregorianCalendar > the math is based on the assumption of sunday being day 1. Then again, what math? core java? the weekday fields are static, starting at 1 (sunday). getFirstDayOfWeek() returns the correct week start per locale. > I believe core Java doesn't include anything other than Gregorian true but doesn't matter. week starts are locale based. > calendars yet, and iirc there are 6 or so other calendars in common > usage including Buddhist and Muslim. Not saying it's bad, just > offering the info. gregorian calendar is supported by core java. thai buddhist is sort of indirectly supported by core java (using any calendar/date formatting functions in th_TH locale automagically results in BE dates, even when you don't want that) but its essentially gregorian calendar. buddhist (again it's more like thai buddhist), hebrew, islamic, japanese, and chinese calendars are supported via icu4j. and there is a sourceforge project that produced a decent (icu4j-like) persian/farsi calendar. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202261 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

