mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-27 02:30:53 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3019 72102866-910b-0410-8b05-ffd578937521
21 lines
563 B
Objective-C
21 lines
563 B
Objective-C
/* Test time zone code. */
|
|
|
|
#include <stdio.h>
|
|
#include <Foundation/NSArray.h>
|
|
#include <Foundation/NSDate.h>
|
|
#include <Foundation/NSDictionary.h>
|
|
#include <Foundation/NSAutoreleasePool.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
id detail;
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
|
|
|
printf("time zones for PST:\n%@\n",
|
|
[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description]);
|
|
printf("time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
|
|
printf("local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
|
|
[arp release];
|
|
return 0;
|
|
}
|