[Development] Using Howard Hinnant's date.h and tz.h for QDateTime and QTimeZone internals

Thiago Macieira thiago.macieira at intel.com
Sun Sep 27 23:09:22 CEST 2015


On Sunday 27 September 2015 19:59:55 Milian Wolff wrote:
> Hey John, Qt people.
> 
> At CppCon Howard Hinnant had a talk on his date.h and tz.h library, which
> looks excellent:
> 
> http://howardhinnant.github.io/date_v2.html
> https://github.com/HowardHinnant/date/blob/master/date.h
> https://github.com/HowardHinnant/date/blob/master/tz.h
> 
> The API seems excellent to me, and should also allow us to reuse it to
> implement QDateTime and especially QTimeZone internals with it. The big
> factor in favor here is that his library comes with a good C++ parser for
> the IANA timezone data base. This should allow us to drop the ICU
> dependency for timezones and simplify the code as well, I assume.
> 
> What do you (all) think?

https://github.com/HowardHinnant/date/issues/1

We don't use ICU for the IANA DB parser. We have our own parser, which reads 
the compiled binaries and does not throw exceptions.

When Howards's implementation fulfils both requirements, we can talk.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list