commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <mccallis...@forthillcompany.com>
Subject Re: [lang] DateUtils proposal, standard date generators
Date Mon, 08 Dec 2003 15:59:37 GMT
Joda is a great project, but is of a very different tack than what 
Glenn brought up -- Glenn, that is your cue -- which is that Date and 
Calendar are A) very broken, and B) very embedded in lots of places.

If projects are willing to use the Joda library instead of the standard 
library that is great, but most things, including JDBC, use java.util.* 
=/

-Brian

On Dec 8, 2003, at 10:18 AM, scolebourne@btopenworld.com wrote:

> I am preparing the way to move the www.joda.org time code to Apache. 
> There is no doubt that it fits well with commons, but I am also wary 
> given the changing nature of Jakarta at present.
>
> This doesn't exclude changes to DateUtils, but should limit the 
> expansion on that class. (DateUtils should simplify tasks that have to 
> use the JDK date classes)
>
> Stephen
>
>>  from:    Brian McCallister <mccallister@forthillcompany.com>
>> Several people, prodded by Glenn Nielson, discussed putting together a
>> project to overcome the shortcoming of Date and Calendar, ranging from
>> their pita to use-ness to their massive performance bottlenecks.
>>
>> I know Glenn has had the flu so don't think he has gotten the ball
>> rolling, but this might be a better place for the date related stuff
>> you are talking about.
>>
>> -Brian
>>
>> On Dec 8, 2003, at 6:46 AM, Ash .. wrote:
>>
>>> The following date generators in the o.a.c.l.t.Dateutils class might
>>> be useful. Requesting feedback.
>>>
>>> public static Calendar getCalendarXxxAgo(int value)
>>> public static Date getDateXxxAgo(int value)
>>>
>>> Xxx = weeks, days, months, years, ...
>>>
>>> E.g.,
>>> Calendar jobJoinDate = DateUtils.getCalendarYearsAgo(10);
>>>
>>> Likewise,
>>>
>>> public static Calendar getCalendarXxxHence(int value)
>>> public static Date getDateXxxHence(int value)
>>>
>>> Calendar taskProcrastinationPeriod = 
>>> Calendar.getCalendarDaysHence(3);
>>>
>>> Further, the special cases of value == 1, may be provided as special
>>> methods:
>>>
>>> getLastMonth(), getNextMonth(), etc.
>>>
>>> Request feedback. I might want to implement this, thow
>>> getDateDaysHence(val) val could be high
>>> ;-)
>>>
>>> Ash
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------
>>>
>>> Run, rabbit run.
>>> Dig that hole, forget the sun,
>>> And when at last the work is done
>>> Don't sit down it's time to dig another one.
>>>
>>> _________________________________________________________________
>>> Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message