Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
How to compare time in perlby abhishes (Friar) |
on Feb 08, 2003 at 17:41 UTC ( [id://233746]=perlquestion: print w/replies, xml ) | Need Help?? |
abhishes has asked for the wisdom of the Perl Monks concerning the following question:
Hello Perl Monks! 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,Abhishek.
Back to
Seekers of Perl Wisdom
|
|