home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / programm / 6080 < prev    next >
Encoding:
Text File  |  1993-01-28  |  924 b   |  23 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!sun2.iend.wau.nl!metten.fenk.wau.nl!peter
  3. From: peter@fenk.wau.nl (Peter Barneveld)
  4. Subject: asctime to clock conversion?
  5. Message-ID: <C1K7By.Jv0@fenk.wau.nl>
  6. Keywords: ctime clock asctime datetime strptime
  7. Organization: Dpt. of Physical and Colloid Chemistry, Wageningen University, NL
  8. Date: Thu, 28 Jan 1993 10:19:10 GMT
  9. Lines: 12
  10.  
  11. Hello,
  12.  
  13. I'm looking for a routine that converts a standard unix 
  14. asctime (format Sun Sep 16 01:03:52 1973\n\0) to the
  15. time expressed  as  the  number  of  seconds since Jan. 1, 
  16. 1970, 00:00, Greenwich Mean Time. In SunOS you can make
  17. use of strptime(), but that is not very portable. Any
  18. pointers to a more portable solution (maybe a public 
  19. version of strptime()) are appreciated.
  20.  
  21. Thanks,
  22. Peter
  23.