Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::year

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
       
       
      Defined in header<chrono>
      class year;
      (since C++20)

      The classyear represents a year in theproleptic Gregorian calendar. Its range is[-3276732767].

      year is aTriviallyCopyableStandardLayoutType.

      Contents

      [edit]Member functions

      constructs ayear
      (public member function)[edit]
      increments or decrements the year
      (public member function)[edit]
      adds or subtracts a number of years from ayear
      (public member function)[edit]
      applies unary operators toyear
      (public member function)[edit]
      determines if the year is a leap year
      (public member function)[edit]
      retrieve the year value
      (public member function)[edit]
      checks if the stored year value is valid
      (public member function)[edit]
      [static]
      returns the smallest possible year value
      (public static member function)[edit]
      [static]
      returns the largest possibleyear
      (public static member function)[edit]

      [edit]Non-member functions

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

      [edit]Helper classes

      formatting support foryear
      (class template specialization)[edit]
      hash support forstd::chrono::year
      (class template specialization)

      [edit]Literals

      Defined in inline namespacestd::literals::chrono_literals
      astd::chrono::year literal representing a particular year
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/year&oldid=157854"

      [8]ページ先頭

      ©2009-2025 Movatter.jp