[Pythonmac-SIG] Folder alias, time offset
Jack Jansen
jack@oratrix.nl
Mon, 11 Oct 1999 11:50:16 +0200
> (1) How can one make a folder alias? I know that
> macostools.mkalias(src, dst)
> makes a file alias, but it does not work for folders.
I'm surprised, I didn't know it didn't work for folders. If anyone has a patch
please forward it to me too for inclusion in the source tree.
> (2) I consistently see that there is a mismatch between MacOS
> filesystem time and the operating system time. To be precise,
> they mismatch by around 4 years. Does that have something
> to do with MacIntosh's definition of epoch?
> (I believe that it is 1904/1/1, right?) Is this a know bug, or is
> there a reason behind it all? If this is an intended feature, then
> is there a standard way of converting time back and forth?
> (I typically get a filetime by using t=os.stat(filename)[8], it can
> then be views in formatted ASCII time by using
> print time.ctime(t),
> and I see that the printed time is 4 years younger.)
Aw, grmpf. Metrowerks keeps changing their idea of how to represent date/time,
and MacPython gets hit by it time and again. There have been three epochs in
use in the software MacPython uses:
- The Mac epoch (1/1/1904, visible with GetFInfo() and such calls)
- The Metrowerks C library epoch (1/1/1900)
- The CWGUSI epoch.
Apparently I've messed up in the conversion again (or maybe I should simply
take out my workaround for MW's messup in a previous release). I'll have a
look.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm