On 11/15/05, Lamine Ba <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am handling timestamps in one of my beans.  Can someone advise me on
> how to write the following script?  I am curious about what libraries
> you would be using... I am only using "java.util.Date" and it is not
> very flexible.
>
> Function to evaluate a date passed by the function process
> ----------------------------------------------------------
> Boolean process(Date timestamp) {
>        If timestamp < (today+2days)
>                Return false;
>        Else
>                Return true;
> }
> ----------------------------------------------------------
<snip/>

Marked OT. Calendar is one option.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
http://java.sun.com/j2se/1.4.2/docs/api/java/util/GregorianCalendar.html

-Rahul



> Thank you for your consideration.
> T Lamine Ba
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to