Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!reo From: reo@cbnews.att.com (robert.e.o'brien) Newsgroups: comp.unix.questions Subject: date to unix seconds Keywords: date time seconds Message-ID: <1991Mar23.170730.18188@cbnews.att.com> Date: 23 Mar 91 17:07:30 GMT Distribution: usa Organization: AT&T Bell Laboratories Lines: 13 I get data from a database that I want to do some statistical analysis on. Part of the data is a date in typical mm/dd/yy format. I want to convert this to a number. Unix seconds is fine since this data doesn't go back further than 1989. I looked at the Unix "date" command and it talked about superusers using the date command to set the time on the machine in Unix seconds. Also about getting the current back out in a variety of formats. I couldn't find the program where you put in a data and get out seconds. Give that I get the program that goes from date to seconds, I'd also like a program that goes the other way. Thanks. Bob O'Brien