std::chrono::tai_clock(3)

πŸ’– std::chrono::tai_clock β€” Library Functions Manual, section 3 πŸ’–

okay bestie, sit down, hydrate, and let me tell you about the clock that keeps time by literally counting atoms. yes, this is a C++ standard library thing from libstdc++, and yes, it's giving physics major energy. 🧚✨


✨ NAME ✨

std::chrono::tai_clock β€” the clock that measures International Atomic Time, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <chrono>

πŸŽ€ Public Types πŸŽ€

the whole little type family, all together, cute:

using duration
using period
using rep
using time_point

πŸ¦‹ Static Public Member Functions πŸ¦‹

these are static, so you call them on the class itself, not on some object. main character functions fr:

template<typename _Duration> static tai_time< common_type_t< _Duration,
    seconds > > from_utc (const utc_time< _Duration > &__t)
static time_point now ()
template<typename _Duration> static utc_time< common_type_t< _Duration,
    seconds > > to_utc (const tai_time< _Duration > &__t)

πŸ‘‘ Static Public Attributes πŸ‘‘

static constexpr bool is_steady

πŸ’œ Detailed Description πŸ’œ

A clock that measures International Atomic Time. like, the atomic one. the one that does not care about the sun, or the seasons, or your feelings. βš›οΈ

The epoch is 1958-01-01 00:00:00. that's the birthday. that's where the counting starts. periodt. πŸŽ‚

Since

C++20 β€” so if your compiler is ancient, this is not the vibe check you're looking for 😭


🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. so not a human author, just a robot doing its little documentation slay πŸ€–πŸ’–


ngl bestie, this one is short and sweet: it's the atomic clock, epoch is 1958-01-01 00:00:00, it's been around since C++20, and the docs wrote themselves. iconic behaviour, honestly. 🫢

and that's the whole page!! mwah πŸ’‹ β€” brought to you by libstdc++, from the std::chrono::tai_clock(3) page, and yes the vibe is immaculate. bye bestie, go convert some UTC πŸ¦‹β­

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms