Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2016-08-30 00:05 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (410 votes). Check out past polls.