Java Tip

2005-11-15 Thread Lamine Ba
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

Re: [OT] Java Tip

2005-11-15 Thread Rahul Akolkar
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

Re: Java Tip

2005-11-15 Thread John Byrd
Calendar cal = Calendar.getInstance(); cal.setTime(timestamp); cal.add(Calendar.DATE, 2); Date compareDate = cal.getTime(); if (timestamp.before(compareDate()) return false; else return true; It's not Perl, but ... Hi all, I am handling timestamps in one of my beans. Can someone advise me

Re: Java Tip

2005-11-15 Thread John Byrd
Calendar cal = Calendar.getInstance(); cal.setTime(timestamp); cal.add(Calendar.DATE, 2); Date compareDate = cal.getTime(); if (timestamp.before(compareDate()) return false; else return true; It's not Perl, but ... Hi all, I am handling timestamps in one of my beans. Can someone advise me

RE: Java Tip

2005-11-15 Thread Lamine Ba
I thought I should use Calendar. However, I was not sure how to manipulate the library. Thanks for the tips Rahul and John. They will save me a lot of time. T Lamine Ba Software Intelligence for Real Estate Professionals. -Original Message- From: John Byrd [mailto:[EMAIL PROTECTED]