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

Milian Wolff milian.wolff at kdab.com
Mon Sep 28 11:00:05 CEST 2015


On Sunday, September 27, 2015 2:09:22 PM CEST Thiago Macieira wrote:
> 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.

OK, thanks for the explanation. But if I understood his talk correctly he 
doesn't throw exceptions either and leaves it to the user on how to handle 
invalid dates. But maybe that was just one part of the library and he does 
throw exceptions elsewhere.

Anyhow, your mail clearly shows that you were aware of the lib already :) That 
was all I intended. Thanks Thiago
-- 
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list