[aur-dev] [PATCH v2] Add user set timezones

Johannes Löthberg johannes at kyriasis.com
Thu Nov 17 22:34:04 UTC 2016


On 16/11, Lukas Fleischer wrote:
>On Wed, 16 Nov 2016 at 04:04:08, Mark Weiman wrote:
>> Yeah, I chose something that was most likely long enough to hold anything that I
>> needed to put in there. It looks like Johannes found it to be a maximum of 33
>> characters, and after looking, the current maximum length is 30, so should I use
>> 33 or 30?
>
>It seems like 32 is a good value:
>
>    $ backward=https://raw.githubusercontent.com/eggert/tz/master/backward
>    $ curl -s "$backward" | sed '/^#/d' | cut -f3 | wc -L
>    32
>
>Johannes, where did you find a legacy name of length 33?
>

Was looking at the actual zoneinfo files on Arch, though it seems that 
the longer ones are under the right/ and posix/ namespaces under 
/usr/share/zoneinfo.  Though I don't think those are actually useful to 
support though.

right/ seems[0] to be for systems that don't implement leap second 
support, where the system time includes the leap seconds (based on TAI), 
and posix/ follows the POSIX standard and are based on UTC, so I think 
we can just ignore those zones.

[0]: http://www.ucolick.org/~sla/leapsecs/right+gps.html

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1768 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20161117/9a53dd85/attachment.asc>


More information about the aur-dev mailing list