On 17/11, Johannes Löthberg via aur-dev wrote:
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


Though it seems that right/ and posix/ are no longer subdirectories in the current upstream zoneinfo database structure, instead being separate directories in /usr/share/zoneinfe. (Called zoneinfo, zoneinfo-posix, and zoneinfo-leapse.) Though some distros, like Arch, still uses the old structure.

Essentially what you're supposed to do is to configure a system to use either the "posix" or the "right" database (now zoneinfo-leaps) by copying their files to /usr/share/zoneinfo, so you shouldn't actually use the full posix/ or real/ files. (hwclock(8))


--
Sincerely,
 Johannes Löthberg
 PGP Key ID: 0x50FB9B273A9D0BB5
 https://theos.kyriasis.com/~kyrias/

Attachment: signature.asc
Description: PGP signature

Reply via email to