Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: date to unix seconds Keywords: date time seconds Message-ID: <1991Mar25.092105.2912@athena.mit.edu> Date: 25 Mar 91 09:21:05 GMT References: <1991Mar23.170730.18188@cbnews.att.com> Sender: news@athena.mit.edu (News system) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 17 See Message <91Mar23.034527edt.1008@smoke.cs.toronto.edu>, posted in the last couple of days to alt.sources.wanted and comp.sources.wanted. It explains how to get the date code from the C news sources; that code will do what you want. Well, sort of. It doesn't parse fully numeric dates (i.e. the mm/dd/yy format you mentioned) in order to avoid ambiguity between US/European number order. However, you can get around this problem by changing the date string slightly (e.g. by changing the mm number to the alphabetic abbreviation for the month) before passing it into the C news code. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710