Posted to tcl by kbk at Thu Jul 24 01:23:48 GMT 2008view raw
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int
- main(int argc, char* argv[])
- {
- char s[100];
- const time_t tick = 1136073600;
- struct tm* time = gmtime(&tick);
- strftime(s, 100, "%a %A %g %G %u %V %w", time);
- printf("%s\n", s);
- return 0;
- }