Re: Getting NSTimeZone for a given NSDate
Re: Getting NSTimeZone for a given NSDate
- Subject: Re: Getting NSTimeZone for a given NSDate
- From: Markus Spoettl <email@hidden>
- Date: Mon, 15 Sep 2008 01:58:26 -0700
On Sep 15, 2008, at 12:56 AM, Jason Coco wrote:
All NSDate objects are stored as seconds since the reference date
(Jan 1 1970 00:00 GMT) and so are always GMT. The description is
using the default time zone to adjust the date. You can get the
default time zone with [NSTimeZone defaultTimeZone] and then you can
get the offset with -(NSTimeInterval)secondsFromGMT.
That was what I needed, thanks Jason.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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