Path: utzoo!attcan!uunet!lll-winken!cert!netnews.upenn.edu!netnews!mjd From: mjd@central.cis.upenn.edu (Mark-Jason Dominus) Newsgroups: comp.unix.questions Subject: How to get seconds-since-epoch in shell script Message-ID: Date: 27 Sep 90 15:08:55 GMT Sender: news@netnews.upenn.edu Distribution: comp Organization: University of Pennsylvania Lines: 13 I want to be able to get the the time in seconds-since-epoch form, and I was surprised to learn that none of the `date' commands we have near here had a seconds-since-epoch format, since it would have been so easy to include. Is there a way to get that time that is easier than computing it from the second, minute, hour, julian-date, and year? -- In some sense a stochastic process can do better; at least it has a chance. Mark-Jason Dominus mjd@central.cis.upenn.edu