Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to use a different epoch with DateTime

by anita2R (Scribe)
on Feb 14, 2017 at 21:37 UTC ( [id://1182007]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #
    
    ...
    my $linux_epoch = timegm( 0, 0, 0, 1, 0, 1970 ); # midnight 01 January
    + 1970
    
    print "2K epoch: $two_k_epoch\tLinux epoch: $linux_epoch\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found