Re: Best way to parse a time today?
Re: Best way to parse a time today?
- Subject: Re: Best way to parse a time today?
- From: Dave DeLong <email@hidden>
- Date: Thu, 13 Oct 2011 17:03:14 -0700
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 (email@hidden)
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:
This email sent to email@hidden