libs-base/Testing/nstimezone.m
netc 86a7ea4aeb Get NSTimeZone to work in GNUstep directory structure.
Add GNUstep specific method to NSBundle which will search the GNUstep
directory structure for resource files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2528 72102866-910b-0410-8b05-ffd578937521
1997-10-18 19:49:50 +00:00

18 lines
449 B
Objective-C

/* Test time zone code. */
#include <stdio.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSDate.h>
#include <Foundation/NSDictionary.h>
int
main ()
{
id detail;
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]);
return 0;
}