minixman has asked for the wisdom of the Perl Monks concerning the following question:
Now would the best way to get how many seconds / milliseconds there are between them to do. First strip out the 2006 day month as they are the same ? or leave them and domy $date1 = "2006/01/03 03:59:59:671"; my $date2 = "2006/01/03 04:00:00:562";
$date1 =~ s/://g; $date2 =~ s/://g; my $ordermilliseconds = $clsendtimestamp - $clrectimestamp; my $ordersecs = $ordermilliseconds / 1000;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to compare date strings
by davorg (Chancellor) on Jan 04, 2006 at 12:01 UTC | |
by minixman (Beadle) on Jan 04, 2006 at 12:36 UTC | |
by minixman (Beadle) on Jan 04, 2006 at 12:50 UTC | |
by davorg (Chancellor) on Jan 04, 2006 at 16:59 UTC | |
|
Re: Best way to compare date strings
by derby (Abbot) on Jan 04, 2006 at 15:04 UTC | |
by minixman (Beadle) on Jan 04, 2006 at 16:25 UTC | |
|
Re: Best way to compare date strings
by Anonymous Monk on Jan 04, 2006 at 12:49 UTC |