in reply to Re: matching different date formats
in thread matching different date formats

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: Re: matching different date formats

Replies are listed 'Best First'.
Re: Re: Re: matching different date formats
by FamousLongAgo (Friar) on Nov 08, 2002 at 23:33 UTC
    Basic pattern matching isn't enough to parse dates -- there are a lot of subtle ( and not subtle ) variations in how dates are formatted that can bite you. The same problem comes up in other "simple" tasks like validating email addresses, finding HTML tags, finding comments in code, finding urls...

    If you really want to re-solve this problem, at least take a look inside some existing date modules ( and CPAN has an overabundance of those ) to make sure you cover all the cases. But I would strongly urge you to build on something already started.
Re: Re: Re: matching different date formats
by vek (Prior) on Nov 09, 2002 at 16:51 UTC
    Just out of curiosity imlou why don't you want to use modules? Remember, the CPAN is your friend. Try taking a peek at Time::Piece for example.

    -- vek --