RE: [NET] 1.5 Leap year processing

2008-03-16 Thread Oberhuber, Martin
r http://www.eclipse.org/dsdp/tm > -Original Message- > From: sebb [mailto:[EMAIL PROTECTED] > Sent: Samstag, 15. März 2008 02:34 > To: Jakarta Commons Developers List > Subject: Re: [NET] 1.5 Leap year processing > > On 14/03/2008, Oberhuber, Martin > <[EMAIL PROT

Re: [NET] 1.5 Leap year processing

2008-03-14 Thread sebb
On 14/03/2008, Oberhuber, Martin <[EMAIL PROTECTED]> wrote: > Hi Sebb, > > > > Regex is not available in Java 1.3. > > Also, how does one know where the year is in the string? > > > Code for this already is in Commons Net, using ORO for the Regex. > See UnixFTPEntryParser.java line 105 OK, did

RE: [NET] 1.5 Leap year processing

2008-03-14 Thread Oberhuber, Martin
Hi Sebb, > Regex is not available in Java 1.3. > Also, how does one know where the year is in the string? Code for this already is in Commons Net, using ORO for the Regex. See UnixFTPEntryParser.java line 105 > 2.2 If previous year also gives a parse error then give up? Hm... Well, well. The po

Re: [NET] 1.5 Leap year processing

2008-03-13 Thread sebb
On 13/03/2008, Oberhuber, Martin <[EMAIL PROTECTED]> wrote: > What about this: > > 1.) Use REGEX to parse year into a separate String -> will be empty or Regex is not available in Java 1.3. Also, how does one know where the year is in the string? [Adding the year is easy, because the format

RE: [NET] 1.5 Leap year processing

2008-03-13 Thread Oberhuber, Martin
What about this: 1.) Use REGEX to parse year into a separate String -> will be empty or 2.) If year is empty, substitute current year (as seen on client) and parse the date 2.1 If a parse error occurs, OR result date is > 3 days in the future, try again with previous year (in order to