home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16910 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.1 KB

  1. Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!sobeco!macx.sts.sobeco.com!user
  2. From: blimoges@sobeco.com (Bertrand Limoges)
  3. Newsgroups: comp.lang.c
  4. Subject: C source to mktime() ?
  5. Message-ID: <blimoges-201192161959@macx.sts.sobeco.com>
  6. Date: 20 Nov 92 21:29:36 GMT
  7. Sender: usenet@sobeco.com
  8. Followup-To: comp.lang.c
  9. Organization: Sobeco Ernst & Young
  10. Lines: 14
  11. Nntp-Posting-Host: macx.sts.sobeco.com
  12.  
  13. Here I am coding away, and I need to use mktime() in order to convert
  14. a struct tm * to a time_t value but the function is not present on the
  15. system I'm working on (MIPS). time, localtime, ... are there, but not
  16. mktime! I've written a quick hack just to get on with my work, but I'd
  17. like something a little more standard and tested. It must be in C, for
  18. I will use it on other platforms as well.
  19.  
  20. Snippets of code or pointers to sources much appreciated,
  21.  
  22. Bertrand Limoges, Sobeco Ernst & Young Inc., Montreal, Canada
  23. ---
  24. We extend and amplify impoverished data on the basis of what we know about
  25. how the world typically behaves, and the result is that prejudice becomes
  26. a natural part of "rational" thought.     --Jeremy Campbell
  27.