/usr/share/zoneinfo file formats
/usr/share/zoneinfo file formats
- Subject: /usr/share/zoneinfo file formats
- From: Todd Blanchard <email@hidden>
- Date: Wed, 18 Dec 2002 22:14:34 +0100
I have a library that purports to be able to read timezone info from
any "standard" unix systems zoneinfo database.
It sez:
--------
"Time zone rules are loaded by reading compiled tzfile files from an
external source. Compiled tzfiles files are commonly distributed with
Unix and Linux systems.
A compiled tzfile is typically generated by the zic(1) compiler
distributed
as part of the public domain timezone database in the ~ftp/pub directory
of elsie.nci.nih.gov FTP server. Source code, documentation, and the
full (human readable) rule file source is available from
elsie.nci.nih.gov.
The tzfile data must be obtained separately. If you have a Unix-like
system, look in /usr/share/zoneinfo."
---------
I find a bunch of promising looking files in /usr/share/zoneinfo. but
looking at the code, it tries to validate the files are of the correct
format by checking for the magic string 'TZif' in the first 4 bytes of
the file. This fails.
The first couple dozen bytes of each of these files on my Mac are all
zero. So does anybody know what format these files are in and why
they're different from other unixen?
Thanks,
-Todd Blanchard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.