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

Re^6: Time::Piece strangeness take two

by mojotoad (Monsignor)
on Dec 14, 2005 at 07:02 UTC ( #516540=note: print w/replies, xml ) Need Help??

in reply to Re^5: Time::Piece strangeness take two
in thread Time::Piece strangeness take two

Hi there,

In the original example, the behaviour would arise from the strptime() call -- on most systems this ends up being a call to the strptime function in your local C library.

As it so happens, you were using %Y in your call which means the year, including the century (i.e. 4 digit year for us mortals).

On the other hand, had you used %y, it is defined thusly:

%y is the year within century. When a century is not otherwise specif +ied, values in the range 69-99 refer to years in the twentieth centur +y (1969 to 1999 inclusive); values in the range 00-68 refer to years +in the twenty-first century (2000 to 2068 inclusive). Leading zeros a +re permitted but not required.

That's the source of the difference of opinion.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-07-08 11:47 GMT
Find Nodes?
    Voting Booth?

    No recent polls found