CppCon 2016: Howard Hinnant “Welcome To The Time Zone'

preview_player
Показать описание


This talk builds on the date/time library presented last year and shows how one can handle conversions among multiple time zones in a type-safe manner.

The entire library is very much chrono-centric, and so inherits desirable features from chrono such as type safety and arbitrary precision.

This time zone libraries have divided themselves by structure and concepts such as absolute time and civil time. While these concepts are useful, and found in this library, this library cuts in other dimensions.

This library draws a clear distinction between calendars and times. Thus this library has been designed from the ground up to not only work well with the Gregorian calendar, but with other calendars as well. Even with calendars written by you. It accomplishes this by using the chrono library as its chief communication channel with the calendar.


Howard Hinnant
Senior Software Engineer, Ripple


*-----*
*-----*
Рекомендации по теме
Комментарии
Автор

2:35 "I have acciendentally mixed up my minutes and hours". Actually you meant "minutes and months" ... which just proves the point this sentence was trying to make :)

sanjuuyonsai
Автор

Wonderful lib, Howard. As always! Thank you =]

NikolasDanielEngels
Автор

To understand this, best watch Howard's presentaions about chrono and date libraries.

mwont
Автор

: ) That's nice: C++ is catching up to the Java 1.2 Calendar classes and Format classes - basing everything on UTC, just as it should be _Microsoft_ (39:35), no matter how much you love your leap years.
To the question at 35:00 - there _shouldn't_ be an ambiguous time or an unmapped time in a modern time system. _But_ there could be - there's no telling what someone might vote into legislation. And pre-modern systems - a mess (February Revolution, anyone?).

williamchamberlain