Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dynasys!rscsys!bob From: bob@rscsys.UUCP (Bob Celmer) Newsgroups: comp.mail.uucp Subject: Re: UUCP status files and wierd dates. Summary: Duration of UNIX epoch Message-ID: <54@rscsys.UUCP> Date: 10 Nov 90 23:56:33 GMT References: <736@dynasys.UUCP> Reply-To: bob@rscsys.UUCP (Bob Celmer) Distribution: usa Organization: Private Lines: 32 In article <736@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher) writes: >I was looking in the status files for UUCP connections and I was trying >to figure out what date was used to calculate the below number: > >0 0 658135267 0 SUCCESSFUL rutgers > ^^^^^^^^^ > >I assume that this is the date of the last connection. If this assumption >is incorrect, what is this number? If it is correct, I have a few more >questions. Why is such an old date used? Why not just use the beginning >of the year? And what is the date that is being used? Any ideas? I believe that number represents the number of seconds that have elapsed during the UNIX epoch, deemed to have begun at Midnight GMT on 1 January, 1970. Try the following short piece of C code. #include main() { long time(); long *tloc; long big_num; big_num = time(tloc); printf("\nSeconds since 1 Jan 1970: %ld\n",big_num); } -- Bob Celmer UUCP: {fedeva,chromc}!dynasys!rscsys!bob