Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to subtract two different times. I tried to do a regular subtraction of variable. I think it won't work
my $first = "00:00:01:04"; my $last = "00:00:08:861"; my $output = $first-$last;
I am looking to extract each values(hour/min/sec/msec) seperatly after the subraction and assign it to variable and compare with the threshold. Is there any function in perl which does timer subtraction?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timer subtraction (updated)
by haukex (Archbishop) on Oct 06, 2017 at 08:57 UTC | |
by Cristoforo (Curate) on Jan 14, 2018 at 23:00 UTC | |
by haukex (Archbishop) on Jan 15, 2018 at 09:35 UTC | |
by Anonymous Monk on Oct 06, 2017 at 09:21 UTC | |
by haukex (Archbishop) on Oct 06, 2017 at 09:51 UTC | |
by Anonymous Monk on Oct 06, 2017 at 11:15 UTC | |
|
Re: Timer subtraction
by Discipulus (Canon) on Oct 06, 2017 at 08:38 UTC | |
|
Re: Timer subtraction (UPDATED)
by thanos1983 (Parson) on Oct 06, 2017 at 08:25 UTC | |
|
Re: Timer subtraction
by locked_user sundialsvc4 (Abbot) on Oct 06, 2017 at 12:21 UTC | |
by Anonymous Monk on Jan 15, 2018 at 12:45 UTC |