Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?
Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?
- Subject: Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?
- From: Mike Abdullah <email@hidden>
- Date: Tue, 6 Jan 2009 12:07:35 +0000
On 4 Jan 2009, at 06:17, Chunk 1978 wrote:
*thread shocked back to life*
since this timer i'm writing is based on NSDate, it's effected if the
computer's clock is manually changed... that i don't mind, because who
really need to ever manually set their clock on the computer...
however, i'm concerned that if (probably when) my timer is running
during a daylight savings shift it will add/subtract an hour... i
guess there's no avoiding this? or maybe apple took this into account
and therefore currently running code is not effected by a daylight
savings shift?
NSDate has no concept of timezone or daylight savings. It purely
represents an exact point in time so will keep running, unaffected as
long as the change is only to daylight savings.
Mike.
_______________________________________________
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