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

POSIX::strftime with gmtime

by pelagic (Curate)
on Jun 14, 2005 at 12:21 UTC ( #466503=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use POSIX qw(strftime);
    ...
    $today    = strftime("%d %m %Y %H:%M:%S", localtime(time));
    print 'scalar     localtime: ', scalar localtime(time), "\n";
    print "strftime'd localtime: $today\n";
    
  2. or download this
    Perl:      5.00503
    POSIX:     1.02
    ...
    strftime'd gmtime:    14 06 2005 12:18:04
    scalar     localtime: Tue Jun 14 14:18:04 2005
    strftime'd localtime: 14 06 2005 14:18:04
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2014-10-25 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls