[monodroid] Add support for the Android TimeZone file format.
authorJonathan Pryor <jonpryor@vt.edu>
Thu, 16 Dec 2010 18:10:44 +0000 (13:10 -0500)
committerJonathan Pryor <jonpryor@vt.edu>
Thu, 16 Dec 2010 18:17:38 +0000 (13:17 -0500)
commit8a263984e95113e8cb753e8f8b05b2342cb8e2d1
tree90ed0e1feef5eb2a57340905d25aff47abca8098
parent8c686c3e13a48988b298569586f60e33d170d93b
[monodroid] Add support for the Android TimeZone file format.

Fixes #657609.

Android uses "ye standard" timezone file format, but instead of using
a directory + file structure as libc uses, they throw everything into
two files, a "zoneinfo.dat" and a "zoneinfo.idx", where "zoneinfo.dat"
is the concatenation of all the TZIF files and "zoneinfo.idx" contains
the timezone names and offsets into "zoneinfo.dat".  From the
ZoneInfoDB documentation:

However, to conserve disk space the data for all time zones
are concatenated into a single file, and a second file is
used to indicate the starting position of each time zone
record.  A third file indicates the version of the zoneinfo
databse used to generate the data.

TimeZoneInfo.Android.cs is a C# port of the corresponding Android
ZoneInfoDB type so that Mono can use Android's timezone DB.
LICENSE
mcs/class/System.Core/System/TimeZoneInfo.Android.cs [new file with mode: 0644]
mcs/class/System.Core/System/TimeZoneInfo.cs
mcs/class/System.Core/monodroid_System.Core.dll.sources