Posted to tcl by kbk at Thu Jul 24 01:23:48 GMT 2008view raw

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. int
  5. main(int argc, char* argv[])
  6. {
  7. char s[100];
  8. const time_t tick = 1136073600;
  9. struct tm* time = gmtime(&tick);
  10. strftime(s, 100, "%a %A %g %G %u %V %w", time);
  11. printf("%s\n", s);
  12. return 0;
  13. }