• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <chrono>

    std::chrono::time_point::min

    static constexpr time_point min();          // C++11
    static constexpr time_point min() noexcept; // C++20
    

    概要

    最小のtime_pointを取得する

    戻り値

    time_point(duration::min())
    

    #include <iostream>
    #include <chrono>
    
    using namespace std::chrono;
    
    int main()
    {
      time_point<system_clock> p = time_point<system_clock>::min();
    
      std::cout << p.time_since_epoch().count() << std::endl;
    }
    

    出力例

    -9223372036854775808
    

    バージョン

    言語

    • C++11

    処理系

    参照