Re: Representing UTC time in a readable format
Re: Representing UTC time in a readable format
- Subject: Re: Representing UTC time in a readable format
- From: Andreas Mayer <email@hidden>
- Date: Fri, 4 Jun 2004 16:28:23 +0200
Am 04.06.2004 um 12:58 schrieb Jeremy Dronfield:
I was under the impression (perhaps mistaken) that UTC time is
different from [NSDate date]. i.e. that it is calculated from a
different absolute reference point and has a specific standard for
representation.
You just need to use the right time zone with offset zero.
NSDate's description methods use the international representation by
default.
So this should do what you want:
[[NSDate date] descriptionWithCalendarFormat:nil timeZone:[NSTimeZone
timeZoneForSecondsFromGMT:0] locale:nil];
Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.