Yep, this is what I was referring to.  I'm not sure there's anything you can do 
about this, since it's technically the input that is incorrect.  However, it's 
still good to be aware that these edge cases exist.

Dave

On Oct 13, 2011, at 10:39 AM, Rick Mann wrote:

> I think the concern is this. Say today is the day that a time change occurs. 
> In the US, this happens at 2 am. When you move the clocks forward, the 
> instant the clock would roll from 1:59:59.999 to 2:00:00.000, it actually 
> rolls to 3:00:00.000. All of the times in the half-open interval (2:00, 3:00] 
> are "invalid."
> 
> So, if on that day, I try to parse the string "02:17", what's the right 
> result? My guess would be "03:17", but I'd have to test that case to be sure 
> it does that.
> 
> -- 
> Rick
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to