home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d399 / cclib.lha / CCLib / Source / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-03  |  251 b   |  19 lines

  1. #define ANSIC 1
  2.  
  3. #include "stdio.h"
  4. #include "time.h"
  5.  
  6. short _math = 0;
  7.  
  8. void main(long argc, char *argv[])
  9. {
  10. time_t t;
  11. struct tm *tm;
  12. char buf[80];
  13. t = time(0L);
  14. tm = localtime(&t);
  15. strftime(buf,79,"%A %B, %d %Y %I:%M %p",tm);
  16. printf("%s\n",buf);
  17. }
  18.  
  19.