Re: How do I compare two NSDates using NSPredicate & Core Data
Re: How do I compare two NSDates using NSPredicate & Core Data
- Subject: Re: How do I compare two NSDates using NSPredicate & Core Data
- From: Jens Alfke <email@hidden>
- Date: Mon, 12 Apr 2010 10:09:21 -0700
On Apr 12, 2010, at 9:35 AM, Jeffrey Oleander wrote:
A date-time is a date-time, regardless of how it is
displayed or entered or obtained from the system.
The whole purpose of the NSDate object is to allow easy
comparison, and determination of intervals by subtraction...
Yup. An NSDate is really just a fancy wrapper around a floating-point
number (a CFAbsoluteTime) representing the number of seconds since
1/1/2001.
(OK, an NSDate also remembers a time zone, but that's just for
converting to human-readable form, it doesn't affect the actual time
stored.)
—Jens_______________________________________________
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