home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- 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
- From: peter@fenk.wau.nl (Peter Barneveld)
- Subject: asctime to clock conversion?
- Message-ID: <C1K7By.Jv0@fenk.wau.nl>
- Keywords: ctime clock asctime datetime strptime
- Organization: Dpt. of Physical and Colloid Chemistry, Wageningen University, NL
- Date: Thu, 28 Jan 1993 10:19:10 GMT
- Lines: 12
-
- Hello,
-
- I'm looking for a routine that converts a standard unix
- asctime (format Sun Sep 16 01:03:52 1973\n\0) to the
- time expressed as the number of seconds since Jan. 1,
- 1970, 00:00, Greenwich Mean Time. In SunOS you can make
- use of strptime(), but that is not very portable. Any
- pointers to a more portable solution (maybe a public
- version of strptime()) are appreciated.
-
- Thanks,
- Peter
-