• 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: Deborah Goldsmith <email@hidden>
  • Date: Wed, 15 Apr 2009 16:04:22 -0700

There is also [NSTimeZone nextDaylightSavingTimeTransition] and [NSTimeZone nextDaylightSavingTimeTransitionAfterDate:], both available in 10.5 or later.

Deborah Goldsmith
Apple Inc.
email@hidden

On Apr 15, 2009, at 2:41 PM, Gregory Weston wrote:

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

_______________________________________________

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: 
 >Re: Daylight Savings Time (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: localizedCompare: with Thai
  • Next by Date: Re: The efficiency of swapping endianness on an iPhone?
  • Previous by thread: Re: Daylight Savings Time
  • Next by thread: Networking
  • Index(es):
    • Date
    • Thread