Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::year_month

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
      Calendar
      (C++20)
      (C++20)
      (C++20)
      (C++20)
      (C++20)
      (C++20)
      year_month
      (C++20)
      (C++20)(C++20)
      chrono I/O
      (C++20)

       
       
      Defined in header<chrono>
      class year_month;
      (since C++20)

      The classyear_month represents a specific month of a specific year, but with an unspecified day. It is a field-based time point, with a resolution ofstd::chrono::months.

      year_month is aTriviallyCopyableStandardLayoutType.

      [edit]Member functions

      constructs ayear_month
      (public member function)[edit]
      accesses the stored year and month
      (public member function)[edit]
      modifies theyear_month by some number of months or years
      (public member function)[edit]
      checks if thisyear_month is valid
      (public member function)[edit]

      [edit]Nonmember functions

      compares twoyear_month values
      (function)[edit]
      performs arithmetic onyear_month
      (function)[edit]
      (C++20)
      outputs ayear_month into a stream
      (function template)[edit]
      parses ayear_month from a stream according to the provided format
      (function template)[edit]

      [edit]Helper classes

      formatting support foryear_month
      (class template specialization)[edit]
      hash support forstd::chrono::year_month
      (class template specialization)
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/year_month&oldid=157909"

      [8]ページ先頭

      ©2009-2025 Movatter.jp