Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-03-06 22:45 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (180 votes), past polls