http://qs1969.pair.com?node_id=1059972


in reply to time difference calculation

Hi,
You might try DateTime module and one of the math method, for example :$dt->delta_ms( $datetime )

#!/usr/bin/perl use strict; use warnings; use DateTime; my $now = DateTime->now; $now->iso8601; $now->subtract( seconds => 101 )->iso8601;


Update: piece of code


hth,
PooLpi

The stone that the builder refused, will always be the head cornerstone.
[ Robert Nesta MARLEY ]