Chris,

I don't know if this is odd at all. In all clocks made to English speaking countries I've had chance to play with 12:00 am is midnight and 12:00 pm is noon.

So the only thing TimeStamp seems (to me) to be doing is reformatting the string to twelve hour format.

Not any 23+ hours before at all!
my 0.019999999.....
--
Cesar Rabak


Em 27/09/2011 17:47, Chris Cunningham < [email protected] > escreveu:
Hi. This behavior tricked me and I'm curious if this is inteded or
not. If you take a timestamp from a string, and the hour is 24:00:00,
then it will assume that the time is at the beginning of the day, that
is, 23+ hours before the timestamp that starts at 23:59:59.

TimeStamp fromString: '2011-09-27 24:00:00' -> '27 September 2011 12:00 am'

I would have hoped that would either be the end of the day, or the
begining of the next one.

So, is this expected behaviour?

Thanks,
Chris


Reply via email to