commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Lang] Null safe date comparisson
Date Thu, 06 Jan 2011 16:38:41 GMT
On 6 January 2011 16:31, Ludwig Magnusson <ludwig@itcatapult.com> wrote:
> Hi!
>
> I'm looking for a way to do null safe date comparison. Something like:
>
>
>
> public static boolean isBefore(Date first, Date second);
>
>
>
> The method would handle null in an appropriate way.

What do you mean by appropriate?

Does null mean beginning of time, or end of time, or now, or Y2K or
something else?

How does one choose the default?

> I haven't found any method like that in DateUtils.
>
> Is there one somewhere?
>
> /Ludwig
>
>
>
>

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


Mime
View raw message