mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 00:11:04 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6643 72102866-910b-0410-8b05-ffd578937521
21 lines
550 B
Objective-C
21 lines
550 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 ()
|
|
{
|
|
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
|
|
|
NSLog(@"time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
|
|
NSLog(@"time zones for PST:\n%@\n",
|
|
[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description]);
|
|
NSLog(@"local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
|
|
|
|
[pool release];
|
|
return 0;
|
|
}
|