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

    Can you extend that approach to a second date?

      thats wt i didnt know how to do :/

        Maybe you need a programming instructor, or some introductionary books and course on programming?

        Have you considered pasting the code twice into your program to run it twice?