abseil / Civil Time in Abseil

/20181010-civil-time

  • Civil Time in Abseil
    https://abseil.io/blog/20181010-civil-time

    By Greg Miller, Bradley White, and Shaindel Schwartz

    Almost every spring and fall there are news headlines about software that misbehaved during a daylight-saving transition. In much of the world, DST transitions occur multiple times per year, yet it is still a veritable minefield of latent bugs due to the complexities inherent in reasoning about civil-time discontinuities. To avoid these problems, a civil-time library must present the programmer with a correct — yet simplified — model that makes expressing the desired intent easy and writing bugs more obvious.

    To that end, we are very pleased to introduce a new feature for the Abseil time library — civil time support. This update adds a set of constructs and functions that are used to represent and perform computations with civil times. (...)