Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::choose

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
       
      Defined in header<chrono>
      enumclass choose{

          earliest,
          latest

      };
      (since C++20)

      The scoped enumerationchoose can be passed to certain member functions ofstd::chrono::time_zone andstd::chrono::zoned_time to control how ambiguous or nonexistent local times should be resolved. Passingchoose::earliest causes the earlier time point to be returned, while passingchoose::latest causes the later time point to be returned. (For nonexistent local times, these two time points are identical.)

      If achoose is not passed and an ambiguous or nonexistent local time is encountered, astd::chrono::ambiguous_local_time orstd::chrono::nonexistent_local_time exception (as applicable) will be thrown.

      [edit] See also

      constructs azoned_time
      (public member function ofstd::chrono::zoned_time<Duration,TimeZonePtr>)[edit]
      converts alocal_time in this time zone to asys_time
      (public member function ofstd::chrono::time_zone)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/choose&oldid=133809"

      [8]ページ先頭

      ©2009-2025 Movatter.jp