On Jan 5, 2010, at 12:15 PM, Chris Ridd wrote: > On 5 Jan 2010, at 19:41, Nick Zitzmann wrote: > >> >> On Jan 5, 2010, at 12:23 PM, Chris Ridd wrote: >> >>> However Core Data models "dates" using NSDate. If you needed to model dates >>> without times in Core Data (and be able to sort/filter on them) what would >>> you do? >> >> Normalize the time component of the date. > > Nod, except that this normalization is exactly what was being recommended > *against* by Quincey :-)
But as Glenn just mentioned, NSDate knows nothing about time zones, daylight's savings time, etc. It is just an offset from Midnight 1/1/01 GMT. Everything else is a display issue, and as the Core Data documentation warns you must store the timezone information separately (which can also mean that you assume a standard time zone for all dates you store). -- David Duncan Apple DTS Animation and Printing _______________________________________________ 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