> 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).

good to know.

>> 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

What's the issue with using the java.util.Calendar class anyway? I
couldn't find much (any?) difference between them from looking at the
documentation.

>> 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.

That's what I meant -- just that in Java, the week is always counted
from sunday, and the value of first-day-of-week is an adjustment
applied against that, so that, if you're working with a calendar
formula and you're asked to get "the first day of the week" it has to
include that offset and it seems I remember my testing showing the CF
native DayOfWeek() function always returning a sunday-based index. I
could be mistaken -- at the time I was working on my calendar code it
was all java anyway because the CF native functions are (or have been)
pretty limited/crude and wouldn't support the kind of control I
wanted.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/author/?id=4806
http://www.fusiontap.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:202273
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

Reply via email to