• 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: Daylight Savings Time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daylight Savings Time


  • Subject: Re: Daylight Savings Time
  • From: Gregory Weston <email@hidden>
  • Date: Wed, 15 Apr 2009 17:41:32 -0400

Greg Robertson wrote:

Basically I would like to display records for a week duration but I am
unsure how to handle daylight savings time. Is there a way to see if
daylight savings time has or will occur?

If you want to see whether a DST switch happens during a given interval, just subtract the dates. If the NSTimeInterval doesn't come out to some multiple of 24 hours, a switch happened.




_______________________________________________

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: Daylight Savings Time
      • From: Deborah Goldsmith <email@hidden>
  • Prev by Date: Re: 3 iPhone SDK Questions
  • Next by Date: DevDays Ireland
  • Previous by thread: Re: Daylight Savings Time
  • Next by thread: Re: Daylight Savings Time
  • Index(es):
    • Date
    • Thread