LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2007, 03:30 PM   #1
pchernik
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
Zoneinfo file format


Hi All.

I am trying to figure out how to make the zoneinfo files smaller by filtering out historical data (due to TIGHT space on an older embedded system). Currently using "northamerica" file as example.

For zones like America/New_York it seems I need to do something like this:

# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER
Rule NYC 1920 only - Mar lastSun 2:00 1:00 D
Rule NYC 1920 only - Oct lastSun 2:00 0 S
Rule NYC 1921 1966 - Apr lastSun 2:00 1:00 D
Rule NYC 1921 1954 - Sep lastSun 2:00 0 S
Rule NYC 1955 1966 - Oct lastSun 2:00 0 S

# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/New_York -4:56:02 - LMT 1883 Nov 18 12:03:58
-5:00 US E%sT 1920
-5:00 NYC E%sT 1942
-5:00 US E%sT 1946
-5:00 NYC E%sT 1967
-5:00 US E%sT

Would change to:

# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER
# no rules

# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/New_York -4:56:02 - LMT 1883 Nov 18 12:03:58
-5:00 US E%sT

Question: I don't understand what -4:56:02 is all about and whether it can be "simplified" further. Can I just replace the zone info with "Zone America/New_York -5:00 US E%sT"?

I'm having trouble with Guatemala (for example):

# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Nic 1979 1980 - Mar Sun>=16 0:00 1:00 D
Rule Nic 1979 1980 - Jun Mon>=23 0:00 0 S
Rule Nic 2005 only - Apr 10 0:00 1:00 D
Rule Nic 2005 only - Oct Sun>=1 0:00 0 S
Rule Nic 2006 only - Apr 30 2:00 1:00 D
Rule Nic 2006 only - Oct Sun>=1 1:00 0 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone America/Managua -5:45:08 - LMT 1890
-5:45:12 - MMT 1934 Jun 23 # Managua Mean Time?
-6:00 - CST 1973 May
-5:00 - EST 1975 Feb 16
-6:00 Nic C%sT 1992 Jan 1 4:00
-5:00 - EST 1992 Sep 24
-6:00 - CST 1993
-5:00 - EST 1997
-6:00 Nic C%sT

Question: How does this work? Nic rule is not specified for 2007+ ...yet last line is "-6:00 Nic C%sT" which, I believe, implies that Nic rule is in use currently. ... Am I missing something here or is this a bug in the northamerica zoneinfo source file?

If somebody could point me to an appropriate m it would be greatly appreciated =)

Thanks in advance for any info / suggestions.

-Pavel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
File format of .vnc file created by vncrec rktech83 Linux - Networking 0 08-17-2006 09:16 AM
I wiped out zoneinfo/America/New_York how can I get a copy? bjw122 Linux - Software 2 04-26-2006 05:06 AM
Red hat 7.3 clock problems with new york zoneinfo Scarlett Linux - Software 1 12-15-2005 09:09 PM
file format gui10 Linux - General 3 12-06-2001 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration