Re: Getting NSTimeZone for a given NSDate

2008-09-15 Thread Jason Coco
On Sep 15, 2008, at 05:35 , Jean-Daniel Dupas wrote: Le 15 sept. 08 à 09:56, Jason Coco a écrit : On Sep 15, 2008, at 03:49 , Markus Spoettl wrote: Hi List, I just know it must be there but I can't see it. How can I get to the NSTimeZone for a given NSDate. When using -description: the

Re: Getting NSTimeZone for a given NSDate

2008-09-15 Thread Jean-Daniel Dupas
Le 15 sept. 08 à 09:56, Jason Coco a écrit : On Sep 15, 2008, at 03:49 , Markus Spoettl wrote: Hi List, I just know it must be there but I can't see it. How can I get to the NSTimeZone for a given NSDate. When using -description: the date got a time zone, so it's stored in there but how

Re: Getting NSTimeZone for a given NSDate

2008-09-15 Thread Markus Spoettl
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 defaultTimeZon

Re: Getting NSTimeZone for a given NSDate

2008-09-15 Thread Jason Coco
On Sep 15, 2008, at 03:49 , Markus Spoettl wrote: Hi List, I just know it must be there but I can't see it. How can I get to the NSTimeZone for a given NSDate. When using -description: the date got a time zone, so it's stored in there but how on earth can I get to it? I only need the GM

Getting NSTimeZone for a given NSDate

2008-09-15 Thread Markus Spoettl
Hi List, I just know it must be there but I can't see it. How can I get to the NSTimeZone for a given NSDate. When using -description: the date got a time zone, so it's stored in there but how on earth can I get to it? I only need the GMT offset (numerically, not as string), in case the