#! /usr/bin/perl -l use strict; use warnings ; use Time::Local qw(timegm_nocheck); my $time1 = '12:44:01'; my $time2 = '12:45:01'; print "diff is ".(timegm_nocheck(split/:/,$time2) - timegm_nocheck(spl +it/:/,$time1)) ;
In reply to Re: how to get the time difference
by jeanluca
in thread how to get the time difference
by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |