Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Date::Parse - how to correctly parse dates between 1901 and 1969

by eniad (Acolyte)
on Feb 19, 2018 at 19:29 UTC ( [id://1209504]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #---------------------------------------------------------------------
    # format_date.pl
    ...
    }
    
    exit 0;
    
  2. or download this
    formatting datetime: value =  1899-06-24 09:44:00, epoch = 18446744071
    +484095456, date =  1899-06-24T09:44:00
    formatting datetime: value =  1900-12-31 23:59:59, epoch = 18446744071
    +532098815, date =  1900-12-31T23:59:59
    formatting datetime: value =  1901-01-01 00:00:00, epoch =            
    +978307200, date =  2001-01-01T00:00:00
    ...
    formatting datetime: value =  2017-06-24 23:59:59, epoch =           1
    +498348799, date =  2017-06-24T23:59:59
    formatting datetime: value =  2018-06-24 09:44:00, epoch =           1
    +529833440, date =  2018-06-24T09:44:00
    formatting datetime: value =  2238-06-24 09:44:00, epoch =           8
    +472332640, date =  2238-06-24T09:44:00
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1209504]
Approved by Discipulus
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found