我想解析Unix系統上的tzfile(Olson)格式。在tzfile(5)手冊頁它規定如下:tzfile格式:處理istd和isgmt
Then there are tzh_ttisstdcnt standard/wall indicators, each stored
as a one-byte value; they tell whether the transition times
associated with local time types were specified as standard time or
wall clock time, and are used when a timezone file is used in
handling POSIX-style timezone environment variables.
Finally, there are tzh_ttisgmtcnt UTC/local indicators, each stored
as a one-byte value; they tell whether the transition times
associated with local time types were specified as UTC or local time,
and are used when a timezone file is used in handling POSIX-style
timezone environment variables.
這是否意味着我可以忽略isstd和isgmt,仍然可以得到正確的時間?在現場檢查中,這似乎是這種情況,但是在C源文件中進行挖掘時,我發現unix會根據這些值進行一些調整。
儘管StackOverflow上的某個人可能能夠回答你的問題,但你會在[tz郵件列表](https://mm.icann.org/mailman/listinfo/tz)上得到更好的運氣,負責Olson tzdata和類Unix系統上使用的相關tzcode。如果你在那裏得到答案,你可以回到這裏回答你自己的問題。 –