Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Date::Manip and date

by neilwatson (Priest)
on Jul 09, 2015 at 12:46 UTC ( #1133953=note: print w/replies, xml ) Need Help??


in reply to Date::Manip and date

Also Time::Piece

use Time::Piece; my $date1 = Time::Piece->localtime(); my $date2 = Time::Piece->strptime( $args{date}, "%Y-%m-%dT%H:%M:%S" ); if ( $date2 > $date2 ) { # do something }; my $diff = $date1 - $date2; # in seconds my $days = $diff->days

Neil Watson
watson-wilson.ca

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-12-19 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (83 votes). Check out past polls.

    Notices?