home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d2xx / d260 / cclib.lha / CCLib / CClib.zoo / source / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-02  |  247 b   |  19 lines

  1. #include "stdio.h"
  2. #include "time.h"
  3.  
  4. short _math = 0;
  5.  
  6. short main(argc,argv)
  7. short argc;
  8. 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.