<p dir="ltr">Ah, systemd in fact had tzdata parsing code already – it was used by tinedatectl to show DST info. Try to recover it from Git.</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 15, 2016, 21:03 Ran Benita <<a href="mailto:ran234@gmail.com">ran234@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Dec 15, 2016 at 06:35:15PM +0100, Lennart Poettering wrote:<br class="gmail_msg">
> So yeah, we'd love to support this, but are waiting for a suitable API.<br class="gmail_msg">
<br class="gmail_msg">
I see, makes sense.<br class="gmail_msg">
<br class="gmail_msg">
Since new glibc API will probably be slow to come, if ever, it might<br class="gmail_msg">
make sense to circumvent it and go for the tzdata directly? It seems the<br class="gmail_msg">
format is described in tzfile(5), and the glibc code which handles it<br class="gmail_msg">
seems to be public domain as well: <a href="https://github.com/eggert/tz" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/eggert/tz</a><br class="gmail_msg">
I don't have any experience with those APIs, though.<br class="gmail_msg">
<br class="gmail_msg">
If I get some time I'll try and see if such an approach is viable.<br class="gmail_msg">
<br class="gmail_msg">
Thanks!<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
systemd-devel mailing list<br class="gmail_msg">
<a href="mailto:systemd-devel@lists.freedesktop.org" class="gmail_msg" target="_blank">systemd-devel@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br class="gmail_msg">
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><p dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>><br>
Sent from my phone</p>
</div>