HJO has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I'm currently having troubles packaging a script which contains the module DateTime::Format::ISO8601, so I'm looking for another way to check if the date I'm giving in the script options does exists...
I'd like to avoid regexp if that's possible ^^" and also the method consisting in extracting the first digits, checking if they are between 1 and 31 for 7 months and 1 and 30 for 4, and 28 or 29 for february, then the 3th and 4th digits to check if they are between 1 and 12, and the year to check if it's a bisextille year...
Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check if a date exists ?
by james2vegas (Chaplain) on Oct 18, 2012 at 10:23 UTC | |
by HJO (Acolyte) on Oct 18, 2012 at 11:10 UTC | |
by james2vegas (Chaplain) on Oct 19, 2012 at 07:42 UTC | |
|
Re: How to check if a date exists ?
by zentara (Cardinal) on Oct 18, 2012 at 10:38 UTC | |
by HJO (Acolyte) on Oct 18, 2012 at 11:18 UTC | |
|
Re: How to check if a date exists ?
by johngg (Canon) on Oct 18, 2012 at 14:00 UTC |