abhishes has asked for the wisdom of the Perl Monks concerning the following question:
I am parsing a file where I find strings of the following pattern 2003/02/05 17:32:06.179
I am able to extract the year, month, day, hour, minute, second and millisecond from this string using a regular expression.
But if I have two such strings how to find out which of the two is smaller. Is there a speedy way to compare two such strings for time.
Thanks for your help in advance.
regards,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to compare time in perl
by mojotoad (Monsignor) on Feb 08, 2003 at 18:39 UTC | |
by tachyon (Chancellor) on Feb 08, 2003 at 19:50 UTC | |
by demerphq (Chancellor) on Feb 08, 2003 at 23:19 UTC | |
|
Re: How to compare time in perl
by valdez (Monsignor) on Feb 08, 2003 at 17:48 UTC | |
|
Re: How to compare time in perl
by Nitrox (Chaplain) on Feb 08, 2003 at 17:46 UTC |