Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

How to format dates prior to 1970?

by Hanfresco (Novice)
on Jul 10, 2017 at 13:07 UTC ( [id://1194689]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    say $t->ymd; # Prints as normal
    say $t->strftime($ymd); # Segmentation fault
    
  2. or download this
    sub formatTime {
        my ($date, $in_format, $out_format) = @_;
        $t = Time::Piece->strptime($date,$in_format);
        return $t->strftime($out_format);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-16 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found