1997-10-18 19:49:50 +00:00
|
|
|
/* Test time zone code. */
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2003-03-23 07:06:27 +00:00
|
|
|
#include <Foundation/NSAutoreleasePool.h>
|
1997-10-18 19:49:50 +00:00
|
|
|
#include <Foundation/NSArray.h>
|
|
|
|
#include <Foundation/NSDate.h>
|
|
|
|
#include <Foundation/NSDictionary.h>
|
2002-09-30 16:54:29 +00:00
|
|
|
#include <Foundation/NSTimeZone.h>
|
1997-10-18 19:49:50 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2002-09-30 16:54:29 +00:00
|
|
|
id detail;
|
2003-03-23 07:06:27 +00:00
|
|
|
CREATE_AUTORELEASE_POOL(pool);
|
1997-10-18 19:49:50 +00:00
|
|
|
|
2002-09-30 16:54:29 +00:00
|
|
|
printf("time zones for PST:\n%s\n",
|
|
|
|
[[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description] UTF8String]);
|
|
|
|
printf("time zones:\n%s\n",
|
|
|
|
[[[NSTimeZone timeZoneArray] description] UTF8String]);
|
|
|
|
printf("local time zone:\n%s\n",
|
|
|
|
[[[NSTimeZone localTimeZone] description] UTF8String]);
|
2003-03-23 07:06:27 +00:00
|
|
|
RELEASE(pool);
|
1997-10-18 19:49:50 +00:00
|
|
|
return 0;
|
|
|
|
}
|