• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I compare two NSDates using NSPredicate & Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How do I compare two NSDates using NSPredicate & Core Data (From: Jeffrey Oleander <email@hidden>)

  • Prev by Date: Re: Data managment
  • Next by Date: Disappearing prefs
  • Previous by thread: Re: How do I compare two NSDates using NSPredicate & Core Data
  • Next by thread: Proposal for category in plugin environment
  • Index(es):
    • Date
    • Thread