17 tm.tm_mon = 10; /* 0..11, so this is november */
18 tm.tm_year = 102; /* year - 1900, so this is 2002 */
19 tm.tm_wday = 2; /* Tuesday */
22 /* Convert this broken down time into a time_t and back */
24 printf ("Test passes if the following lines are\n"
26 printf ("3DD173D1 - Tue Nov 12 21:34:09 2002\n");
27 printf ("%08lX - %s", t, asctime (&tm));
28 printf ("%08lX - %s", t, asctime (gmtime (&t)));
29 strftime (buf, sizeof (buf), "%c", &tm);
30 printf ("%08lX - %s\n", t, buf);
31 strftime (buf, sizeof (buf), "%a %b %d %H:%M:%S %Y", &tm);
32 printf ("%08lX - %s\n", t, buf);