date to unix seconds

Jonathan I. Kamens jik at athena.mit.edu
Mon Mar 25 19:21:05 AEST 1991


  See Message <91Mar23.034527edt.1008 at 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 at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.questions mailing list