• 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: NSDatePicker behaviour is odd when typing date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDatePicker behaviour is odd when typing date


  • Subject: Re: NSDatePicker behaviour is odd when typing date
  • From: Deborah Goldsmith <email@hidden>
  • Date: Mon, 19 Mar 2007 16:43:23 -0700

On Mar 19, 2007, at 3:43 AM, Michael Hall wrote:
Sorry for this again, sort of continuing a off-topic post all by myself.
I hoped someone else would of corrected me by this morning. But for the archives, and in order not to leave anyone with false information I was completely wrong. But I seem not to be the only one.
Google hits:
364.2424 - 3 hits
364.2425 - 7 hits
365.2424 - 410 hits
365.2425 - 39,200 hits
365.2525 - 10 hits
365.2524 - 10 hits


I may of missed some variations. But it is actually less than 365 1/4 as originally stated. So one of the 365.24 values is correct.

Well, actually, it depends on what you're trying to measure. There's the sidereal year, the tropical (solar) year, and the vernal equinox year. The length of the year that I learned was 365.2422, the tropical year. However, the purpose of a calendar system is to keep the seasons in synch, not the position of the sun in the sky, so the vernal equinox year (about 254.2424 days) is probably the most appropriate. See:


http://en.wikipedia.org/wiki/Gregorian_calendar
http://en.wikipedia.org/wiki/Tropical_year

in particular,

http://en.wikipedia.org/wiki/Tropical_year#Different_lengths
http://en.wikipedia.org/wiki/Tropical_year#Calendar_year

When I typed "One year in days" to Google, I got the tropical year (365.242199).

It doesn't help that the length of the solar day is not exactly 86400 seconds, either. It hasn't been since 1820. Leap seconds are used to take care of that.

Bringing this back on topic, it's best to just use CFCalendar/ NSCalendar and not worry about this yourself. :-)

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc.
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSDatePicker behaviour is odd when typing date
      • From: Deborah Goldsmith <email@hidden>
    • Re: NSDatePicker behaviour is odd when typing date
      • From: Michael Hall <email@hidden>
References: 
 >NSDatePicker behaviour is odd when typing date (From: Graham Perks <email@hidden>)
 >Re: NSDatePicker behaviour is odd when typing date (From: Nick Zitzmann <email@hidden>)
 >Re: NSDatePicker behaviour is odd when typing date (From: Michael Hall <email@hidden>)
 >Re: NSDatePicker behaviour is odd when typing date (From: Michael Hall <email@hidden>)
 >Re: NSDatePicker behaviour is odd when typing date (From: Michael Hall <email@hidden>)

  • Prev by Date: 10.4.9 stangeness?
  • Next by Date: Re: Generating SQL Statement from NSPredicate?
  • Previous by thread: Re: NSDatePicker behaviour is odd when typing date
  • Next by thread: Re: NSDatePicker behaviour is odd when typing date
  • Index(es):
    • Date
    • Thread