Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Converting epoch times after 2038

by ikegami (Patriarch)
on Apr 05, 2007 at 07:01 UTC ( [id://608427]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use DateTime                qw( );
    use DateTime::Format::Epoch qw( );
    ...
    
    my $dt = $formatter->parse_datetime( 3700771200 );
    print( $dt->strftime( '%x %X' ), "\n" );  # Apr 10, 2087 12:00:00 AM
    
  2. or download this
    use DateTime::Format::Epoch::Unix qw( );
    
    my $dt = DateTime::Format::Epoch::Unix->parse_datetime( 3700771200 );
    print( $dt->strftime( '%x %X' ), "\n" );  # Apr 10, 2087 12:00:00 AM
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found