Here i based one problem.. i have two timestamps with same format like (Tue Dec 14 18:23:19 2010 & Tue Dec 14 17:23:19 2010). how can i get the difference of two timestamps
use Date::Parse; my $t1 = 'Tue Dec 14 17:23:19 2010'; my $t2 = 'Tue Dec 14 18:23:19 2010'; my $s1 = str2time( $t1 ); my $s2 = str2time( $t2 ); print $s2 - $s1, " seconds\n";