> because Calendar is an abstract class so when you do a
> getInstance(),
> you should be getting the concrete GregorianCalendar class
> anyway. also
> there are several more methods in the GregorianCalendar
> including many
> more ways of doing an init (which you'll eventually find
> useful).

Thanks. :) I must have overlooked the abstract declaration in the
documentation.

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

> "the first day of the week"? not sure what you mean. week
> start is
> static. or do you mean first day of a given week?

just the first day of the calendar week -- because it varies -- the
reason there's a getFirstDayOfWeek() method... i.e. if I want to
create a calendar application which displays an html representation of
a calendar (as though it were a printed calendar), I can't rely on
using ColdFusion native DayOfWeek(date) to be accurate in locales
where printed calendars begin the week on Monday or Saturday. You look
at the wall calendar and you count the days from Monday, but
ColdFusion says that Monday is day 2, not day 1. Which is true
technically for the sake of mechanical consistency, but doesn't match
the display of the printed calendar.

>> include that offset and it seems I remember my testing
>> showing the CF
>> native DayOfWeek() function always returning a
>> sunday-based index. I

> so will java, even icu4j. the weekday fields are static,
> they have to
> be. if you really need finer control/calendar metadata
> then icu4j is the
> best choice.

Yea, I know they need to be static -- there has to be a base from
which everything else is referenced. CF just doesn't provide (iirc) a
native method of determining what offset calendars in the current
locale use. I used java to get the information for my calendar widget.
Kai's been pretty happy with it.

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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202374
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