Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

POSIX::strftime with gmtime

by pelagic (Priest)
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?
[Corion]: Yay, vacation time now - one week off work (but a Perl workshop in the middle ;)) )
[talexb]: TStanley I just realized that I was in your area for a convention back in April. We were at the high school for the weekend, the one with the long driveway. Nice spot.
[TStanley]: I am heading to Arlington, Virginia next week, then I get to spend an entire week at home. Looking forward to that as I will have spent 7 weeks on the road by the end of next week
[talexb]: That's a long road trip. I haven't travelled for business in years.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-06-23 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (548 votes). Check out past polls.