in reply to help in billing process
i'm trying to do timestamp, that takes difference of the two dates. but i know to convert only one particular date to timestamp ... so how should i make difference between any two dates??
use Time::Local; my $date = '23.10.2011 11:35:00'; my ($mday,$mon,$year,$hour,$min,$sec) = split(/[\s.:]+/, $date); my $time = timelocal($sec,$min,$hour,$mday,$mon-1,$year); print $time,"\n",scalar localtime $time;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: help in billing process
by Corion (Patriarch) on Jan 24, 2014 at 09:25 UTC | |
by oikool (Novice) on Jan 24, 2014 at 09:33 UTC | |
by Corion (Patriarch) on Jan 24, 2014 at 09:37 UTC |