git.iko.soy/typeable/timezone-olson
on master help sign in
Update comment to indicate support for version 3 format.
commit1235a9a1ae5054ba54dc3a3e7e99d7244b53bb8d authorYitzchak Gale <gale@sefer.org> dateWed 19 Mar 2014, 16:26 (13 years ago) parent466894d
1 file changed+18−10
Data/Time/LocalTime/TimeZone/Olson/Types.hs+18−10
Data/Time/LocalTime/TimeZone/Olson/Types.hs+18−10
@@ -41,17 +41,25 @@ import Control.Monad (mplus)
4141
4242-- | @OlsonData@ represents a full set of timezone data for a location.
4343--
44−-- @OlsonData@ can represent timezone data from files in Version 1 format
45−-- or Version 2 format. Version 1 format files can only contain timestamp
46−-- values that can be represented in less than 32 bits, and cannot contain
47−-- a POSIX TZ string.
44+-- @OlsonData@ can represent timezone data from files in Version 1, 2,
45+-- or 3 format.
4846--
49−-- In a Version 2 format file, the timezone data is split into two parts.
50−-- The first part contains timezone data for which all timestamp values
51−-- can be represented in less than 32 bits, and the second part contains
52−-- timezone data for which 32 bits or more are required to represent
53−-- timestamp values. The POSIX TZ string, if present, can only be rendered
54−-- in a Version 2 file, and appears after both parts of the timezone data.
47+-- Version 1 format files can only contain timestamp values that can
48+-- be represented in less than 32 bits, and cannot contain a POSIX TZ
49+-- string.
50+--
51+-- In a Version 2 format file, the timezone data is split into two
52+-- parts. The first part contains timezone data for which all
53+-- timestamp values can be represented in less than 32 bits, and the
54+-- second part contains timezone data for which 32 bits or more are
55+-- required to represent timestamp values. The POSIX TZ string, if
56+-- present, can only be rendered in a Version 2 file, and appears
57+-- after both parts of the timezone data.
58+--
59+-- Version 3 format files relax certain syntax requirements for the
60+-- POSIX TZ string. Since we represent the POSIX TZ string as an
61+-- unparsed 'String', Version 3 is identical to Version 2 for our
62+-- purposes.
5563data OlsonData =
5664 OlsonData {
5765 olsonTransitions :: [Transition],