home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / libraries / cclib / source / test.c < prev    next >
C/C++ Source or Header  |  1990-11-02  |  251b  |  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.