• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
/usr/share/zoneinfo file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/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.

  • Follow-Ups:
    • Re: /usr/share/zoneinfo file formats
      • From: Chris Kane <email@hidden>
  • Prev by Date: Problem in coding integers/floats
  • Next by Date: Re: "First Run" installation of Application support stuff?
  • Previous by thread: Re: Problem in coding integers/floats
  • Next by thread: Re: /usr/share/zoneinfo file formats
  • Index(es):
    • Date
    • Thread