home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newlibs / cclib.lzh / test.c < prev    next >
C/C++ Source or Header  |  1989-09-25  |  256b  |  20 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. short i;
  11. time_t t;
  12. struct tm *tm;
  13. char buf[80];
  14. t = time(0L);
  15. tm = localtime(&t);
  16. strftime(buf,79,"%A %B, %d %Y %I:%M %p",tm);
  17. printf("%s\n",buf);
  18. }
  19.  
  20.