Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: time difference calculation

by poolpi (Hermit)
on Oct 28, 2013 at 12:41 UTC ( [id://1059972]=note: print w/replies, xml ) Need Help??


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 ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found