mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-21 15:31:17 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16228 72102866-910b-0410-8b05-ffd578937521
24 lines
613 B
Objective-C
24 lines
613 B
Objective-C
/* Test time zone code. */
|
|
|
|
#include <stdio.h>
|
|
#include <Foundation/NSAutoreleasePool.h>
|
|
#include <Foundation/NSArray.h>
|
|
#include <Foundation/NSDate.h>
|
|
#include <Foundation/NSDictionary.h>
|
|
#include <Foundation/NSTimeZone.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
id detail;
|
|
CREATE_AUTORELEASE_POOL(pool);
|
|
|
|
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]);
|
|
RELEASE(pool);
|
|
return 0;
|
|
}
|