Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: problem with 'strftime' on unix systems

by Anonymous Monk
on Oct 23, 2006 at 11:03 UTC ( [id://579986]=note: print w/replies, xml ) Need Help??


in reply to problem with 'strftime' on unix systems

You don't specify what flavour of the dozens of Unices that are out there you are using, let alone which version. So, it's hard to solve the specific problem.

However, on my Linux box, "%s" prints the number of seconds since the Epoch. Since that's what gmtime is returning, why use the long about route using strftime in the first place? Wouldn't perl -lwe 'print gmtime' to the trick?

  • Comment on Re: problem with 'strftime' on unix systems

Replies are listed 'Best First'.
Re^2: problem with 'strftime' on unix systems
by davorg (Chancellor) on Oct 23, 2006 at 11:08 UTC
    Wouldn't perl -lwe 'print gmtime' to the trick?

    I think you mean time, not gmtime.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://579986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-06-16 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.