Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: problem with 'strftime' on unix systems

by davorg (Chancellor)
on Oct 23, 2006 at 11:16 UTC ( #579991=note: print w/ replies, xml ) Need Help??

in reply to Re^2: problem with 'strftime' on unix systems
in thread problem with 'strftime' on unix systems

But the epoch isn't effected by timezone. It's the number of seconds since 00:00 on 1st Jan 1970 GMT. I can't see how you'll ever get different answers from:

print strftime '%s', localtime;


print time;

Am I missing something?


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

Comment on Re^3: problem with 'strftime' on unix systems
Select or Download Code
Replies are listed 'Best First'.
Re^4: problem with 'strftime' on unix systems
by gellyfish (Monsignor) on Oct 23, 2006 at 11:23 UTC

    No I don't think you are missing something, it was just the only semi-plausible reason that I could think of that someone might think they want to do that.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-02-09 07:45 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (309 votes), past polls