<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 28, 2015 at 4:09 PM, Andrew Paprocki <span dir="ltr"><<a href="mailto:andrew@ishiboo.com" target="_blank">andrew@ishiboo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">If you're interested in keeping up with C++ APIs, check out ours as well:<br><a href="https://bloomberg.github.io/bde/group__baltzo.html" target="_blank">https://bloomberg.github.io/bde/group__baltzo.html</a><br><br>It is built atop date/time types (John Lakos designed) in a lower package. bdlt::Datetime (no offset/tz), bdlt::DatetimeTz (datetime + offset), and baltzo::LocalDatetime (datetime + iana tz string) to cover all the use cases. The baltzo package allows efficient conversion from one timezone to another using these types. Included in the package is a default process-wide cache to help speed everything up.<div><br></div><div>baltzo::TimeZoneUtil contains the high level conversion routines:<br><a href="https://bloomberg.github.io/bde/group__baltzo__timezoneutil.html" target="_blank">https://bloomberg.github.io/bde/group__baltzo__timezoneutil.html</a></div><div><br></div><div>Feedback always welcome :)</div></div></blockquote><div><br></div><div>As a point of comparison, cctz deals exclusively with <b>absolute time</b> (think time_t), <b>civil time</b> (think YMDhms), and <b>time zone</b> (opaque).  So, there is no distinction between TimeZoneUtil's example 1, "Converting a UTC time to a Local Time", and example 2, "Converting a Local Time in One Time Zone to Another Time Zone."  They are both instances of:</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">at = MakeTime(ct1, tz1)</font></div><div><font face="monospace, monospace">ct2 = BreakTime(at, tz2)</font></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Notice also that "offset" does not appear anywhere in those concepts.</div></div></div></div>