• 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: NSDate without time portion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate without time portion


  • Subject: Re: NSDate without time portion
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 05 Jan 2010 20:15:49 +0000

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 :-)

> 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.

Cheers,

Chris
_______________________________________________

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

  • Follow-Ups:
    • Re: NSDate without time portion
      • From: David Duncan <email@hidden>
References: 
 >NSDate without time portion (From: Brian Bruinewoud <email@hidden>)
 >Re: NSDate without time portion (From: Quincey Morris <email@hidden>)
 >Re: NSDate without time portion (From: Chris Ridd <email@hidden>)
 >Re: NSDate without time portion (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: [Moderator] Re: New Tablet
  • Next by Date: Re: Weird issue with BDAlias/FSRefs and the case of filesystem paths
  • Previous by thread: Re: NSDate without time portion
  • Next by thread: Re: NSDate without time portion
  • Index(es):
    • Date
    • Thread