Article View: comp.sys.acorn.tech
Article #324Re: Archimedes <-> Unix timestamp conversion
From: Peter Gutmann
Date: Thu, 15 Oct 1992 02:07
Date: Thu, 15 Oct 1992 02:07
27 lines
1705 bytes
1705 bytes
In <1992Oct9.151738.20184@infodev.cam.ac.uk> idg10@cl.cam.ac.uk (I.D. Griffiths) writes:
>In article <1992Oct9.004808.4421@cs.aukuni.ac.nz>, pgut1@cs.aukuni.ac.nz
>(Peter Gutmann) writes:
>|> Does anyone know how to convert from the 5-byte file timestamp to the
>|> standard seconds-since-1970 4-byte Unix one?
>Yup, had to do that one this summer...
>Find out how to offset things from 1970 in Acorn format. Easily done thus:
>[ stuff deleted ]
>This will give you a value to subtract from Acorn dates to get them relative to
>1970.
>Then, divide by 100.
The problem is - this *doesn't* work (or if it does it does a very good job
of seeming not to work :-). What you've said is exactly what I did. The
dates were completely wrong, and what's more the relationship between the
converted dates was nonlinear (I still haven't found out exactly what the
relationship is). Email from someone else who's tried this indicates that
I'm not the only one who's had trouble with this. Is there anyone out there
who has working C code to do the conversion from Unix <-> Acorn format?
Peter.
--
pgut1@cs.aukuni.ac.nz || peterg@kcbbs.gen.nz || peter@nacjack.gen.nz
(In order of preference)
Technical Details
Message-ID:
<1992Oct15.020725.6301@cs.aukuni.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!pgut1References:
<1992Oct9.004808.4421@cs.aukuni.ac.nz> <1992Oct9.151738.20184@infodev.cam.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!pgut1 Newsgroups: comp.sys.acorn.tech Subject: Re: Archimedes <-> Unix timestamp conversion Message-ID: <1992Oct15.020725.6301@cs.aukuni.ac.nz> From: pgut1@cs.aukuni.ac.nz (Peter Gutmann) Date: Thu, 15 Oct 1992 02:07:25 GMT References: <1992Oct9.004808.4421@cs.aukuni.ac.nz> <1992Oct9.151738.20184@infodev.cam.ac.uk> Organization: Computer Science Dept. University of Auckland Lines: 27