Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
- Subject: Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
- From: "Stephen J. Butler" <email@hidden>
- Date: Sat, 08 Oct 2011 23:12:48 -0500
On Sat, Oct 8, 2011 at 11:09 PM, Jerry Krinock <email@hidden> wrote:
> Don't do this:
>
> -[NSDate dateWithTimeIntervalSinceNow:FLT_MAX] ;
>
> Expected result: A date far off into the future which will always behave as though it is later than or equal to any other date.
What's wrong with +[NSDate distantFuture]?
_______________________________________________
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