[tz] tz abbreviations / zdump for programmers

Boruch Baum boruch_baum at gmx.com
Mon Jun 4 17:59:09 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 06/04/2012 11:36 AM, Steffen Daode Nurpmeso wrote:
> Boruch Baum <boruch_baum at gmx.com> wrote:
> 
> |My current plan is: |[.] |tzinfo    { |    time_t start
> /// seconds from epoch |    int    utc_offset    /// in minutes, or
> maybe seconds. |    char   is_dst        /// 0/1
> 
> I would suggest to you using a different field for that, which, if 
> not 0, would implicit mean "is daylight saving". We have a
> 'save_secs' field instead, meaning the time to save in seconds (we
> only use seconds, also in our utf_offset, which thus refers to the
> unadjusted offset).  Sometimes nice.
Accepted: utc_offest in seconds and is_dst changed to save_secs
Thanks.

> 
> |    char[] tz_abbrev     /// |    const char end_mark  /// '\0'
> 
> Ah, and we have a hashmap of all possible zone abbreviations, and 
> only store the index of it in our "RuleDat".
I don't see this hashmap. How can I find it?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJPzPdZAAoJEDvrUfDmCx9LMlwP/i476t/OgUgEsry3OoHvy2Q9
eCqmyIAP9yDl+sC0olkNNp0lOqbBBeWMACs8jme0dn0e/rngMvMhGnWDQiax6u5/
Gr6eisJXuB4Oo6xFyhYWPT5WwyGBMoQ5+Zx1iZGfl4ET4dypRQi+Sq0Um/+Hc3pj
wvbeHXDiqLpXODnl+QrpZ4O2+o1OIHCKWxvGRCOK/Ev0VeBikPxyR+NDSBcFO7Qv
ddYxu9Bq3KqaIeTYKOt9derGchNS60PlH3B/aufDjdS+khZcFsXfcgT3PTTlVq1H
7Np1IimMaBSHxz9aR9iSG1OWI+ZoXrZgUdGsI7s+qAUVfqAtsZ8vyRRIL4eWzl9o
r2yEeltXP0PvU57Ed7Hvxc6ZUFETIoJ2zHNl+MBWfRZR1gIukl6EjCgsrH4yY+xb
19Taoq867hbos0DEHW0RxLKrIy+0Q9/IaMX8I47NDSiHoZjmi/Z8VLpgKQ7AuroS
ZA7jImgJw+tZ47bbjDH8LP9hvi2zPSf0VmEBXx1Yky8tn5QcqnzHx9YvKQAaYYPK
EOCx8o/OqlBAaalTxsAEeoMdFbgC8qv7s+zATwTUkQbIqa9KrPbCR/JdUaJmHYa6
Nqpf2kk5npStQTd15/ktROkmMTbFGxqaJ04Sy5gat7T2sqyQDeAxkuApa6zXnezc
+rP7jdA7cWfASCLnQjqL
=8K97
-----END PGP SIGNATURE-----


More information about the tz mailing list