Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::time_point<Clock,Duration>::max

      From cppreference.com
      <cpp‎ |chrono‎ |time point
       
       
      Date and time library
       
       
      staticconstexpr time_point max();
      (until C++20)
      staticconstexpr time_point max()noexcept;
      (since C++20)

      Returns atime_point with the largest possible duration, i.e.time_point(duration::max()).

      [edit]Parameters

      (none)

      [edit]Return value

      The largest possibletime_point.

      [edit]Example

      Run this code

      Possible output:

      all times:Sun Oct  7 19:06:48 2012Sat Oct  6 19:06:48 2012Tue Oct  9 19:06:48 2012earliest:Sat Oct  6 19:06:48 2012
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/time_point/max&oldid=175495"

      [8]ページ先頭

      ©2009-2025 Movatter.jp