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. One idea is to use 12 PM GMT as a 
constant time, since then the date will be the same date everywhere in the 
world - except in New Zealand, Fiji, Kiribati, Samoa, & other states in the 
GMT+12/13 neighborhood, so you'll have to translate for them. iCal does this 
when synchronizing calendar dates.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

Reply via email to