• 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: Alternative to NSDate's dateWithNaturalLanguageString: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative to NSDate's dateWithNaturalLanguageString: ?


  • Subject: Re: Alternative to NSDate's dateWithNaturalLanguageString: ?
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 30 Jun 2008 20:06:42 -0700

On 30 Jun 08, at 08:14, Jens Alfke wrote:
On 30 Jun '08, at 12:29 AM, David Arve wrote:

sqlite3_bind_int(sql_statement, 1, one_week);

Shouldn't that be sqlite3_bind_double? The variable one_week is declared as double, and I'm pretty sure that seconds-since-1970 intervals are soon going to overflow a (signed) 32-bit int, if they haven't already.

time_t (seconds since 1970, signed 32-bit integer) doesn't overflow until early 2038 - at which point there is mass panic, riots in the streets, and blood raining from the skies, because a ton of protocols have the 32-bit width baked into them.


But it's safe for the next 30 years or so. Hopefully we'll all be using 64-bit systems by then.
_______________________________________________


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: 
 >Alternative to NSDate's dateWithNaturalLanguageString: ? (From: "David Arve" <email@hidden>)
 >Re: Alternative to NSDate's dateWithNaturalLanguageString: ? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Core Data Entity Relationship -valueForKeyPath: question
  • Next by Date: Re: [MEET] CocoaHeads Mac Developer Meetings
  • Previous by thread: Re: Alternative to NSDate's dateWithNaturalLanguageString: ?
  • Next by thread: Re: Alternative to NSDate's dateWithNaturalLanguageString: ?
  • Index(es):
    • Date
    • Thread