We've all done bits of that, and its not bad for practice. But you'll be better off in the long run using DateTime. Read up on leap seconds in the docs, ask yourself if you want to really deal with that (and all the other stuff - daylight savings, leap years, time zones) or if you'd rather let someone else do it.
Perl Advent Calendar on DateTime. perl.com article. DateTime home.
In reply to Re: Wrote my own date parser
by qq
in thread Wrote my own date parser
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |