Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::leap_second_info

      From cppreference.com
      <cpp‎ |chrono‎ |utc clock
       
       
      Date and time library
       
       
      Defined in header<chrono>
      struct leap_second_info{

         bool is_leap_second;
         std::chrono::seconds elapsed;

      };
      (since C++20)

      Aleap_second_info indicates whether a UTC time is during a positive leap second insertion and the total number of leap seconds between 1 January 1970 and the UTC time.

      leap_second_info has no base classes or members other thanis_leap_second,elapsed, and implicitly declared special member functions.

      [edit]Member objects

      is_leap_second
      whether the UTC time is during a positive leap second insertion
      (public member object)
      elapsed
      the sum of leap seconds between 1 January 1970 and the UTC time
      (public member object)

      [edit]Notes

      leap_second_info is typically obtained fromstd::chrono::get_leap_second_info.

      [edit]See also

      contains information about a leap second insertion
      (class)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/utc_clock/leap_second_info&oldid=161672"

      [8]ページ先頭

      ©2009-2025 Movatter.jp