Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Rounding Issue in DateTime strftime?

by SparkeyG (Curate)
on Nov 14, 2011 at 19:03 UTC ( #938002=note: print w/replies, xml ) Need Help??


in reply to Re: Rounding Issue in DateTime strftime?
in thread Rounding Issue in DateTime strftime?

Yeah, I decided to go ahead and report the bug. As to the suggestion of truncating, wouldn't that revert rt://66744
  • Comment on Re^2: Rounding Issue in DateTime strftime?

Replies are listed 'Best First'.
Re^3: Rounding Issue in DateTime strftime?
by runrig (Abbot) on Nov 14, 2011 at 19:24 UTC
    No, this only truncates if the nanoseconds round up to 1 second (assuming it works correctly).
      Sorry, I should read the code and not make assumption. Yes you are correct, but it doesn't do what is expected.
Re^3: Rounding Issue in DateTime strftime?
by runrig (Abbot) on Jan 27, 2012 at 18:55 UTC
    I submitted a patch to rt://72416 to correctly round, but I'm not sure that rounding is better than truncating. Though either is better than what it is doing now :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938002]
help
Chatterbox?
[james28909]: is this acceptable? Re: Iterate multiple arrays with added text
[james28909]: wooo im a 1337 hax0r!!!1!1

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-05-23 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?