Ah, systemd in fact had tzdata parsing code already – it was used by
tinedatectl to show DST info. Try to recover it from Git.

On Thu, Dec 15, 2016, 21:03 Ran Benita <ran...@gmail.com> wrote:

> On Thu, Dec 15, 2016 at 06:35:15PM +0100, Lennart Poettering wrote:
> > So yeah, we'd love to support this, but are waiting for a suitable API.
>
> I see, makes sense.
>
> Since new glibc API will probably be slow to come, if ever, it might
> make sense to circumvent it and go for the tzdata directly? It seems the
> format is described in tzfile(5), and the glibc code which handles it
> seems to be public domain as well: https://github.com/eggert/tz
> I don't have any experience with those APIs, though.
>
> If I get some time I'll try and see if such an approach is viable.
>
> Thanks!
> _______________________________________________
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-- 

Mantas Mikulėnas <graw...@gmail.com>
Sent from my phone
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to