#import <Foundation/Foundation.h>

int
main (void)
{
  CREATE_AUTORELEASE_POOL (pool);
  NSCalendarDate *date = [NSCalendarDate calendarDate];
  NSCalendarDate *date2 = [NSCalendarDate new];
  NSCalendarDate *date3;
  NSString *format =
    [[NSUserDefaults standardUserDefaults] objectForKey: NSTimeFormatString];

  [date2 initWithYear: 2010 month: 3 day: 13 hour: 4 minute: 3 second: 30
	     timeZone: nil];

  date3 = [NSCalendarDate dateWithString: @"1,2,3"
			  calendarFormat: format
				  locale: nil];

  GSPrintf (stdout, @"%@\n", format);
  GSPrintf (stdout, @"%@\n", [date2 descriptionWithCalendarFormat: format]);
  GSPrintf (stdout, @"%@\n", [date3 descriptionWithCalendarFormat: format]);
  GSPrintf (stdout, @"%@\n", [date descriptionWithCalendarFormat: format]);

  RELEASE (pool);
  exit (EXIT_SUCCESS);
}
