Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::chrono::month(3)	      C++ Standard Libary	 std::chrono::month(3)

NAME
       std::chrono::month - std::chrono::month

Synopsis
	  Defined in header <chrono>
	  class	month;					     (since C++20)
	  inline constexpr std::chrono::month January{1};    (since C++20)
	  inline constexpr std::chrono::month February{2};   (since C++20)
	  inline constexpr std::chrono::month March{3};	     (since C++20)
	  inline constexpr std::chrono::month April{4};	     (since C++20)
	  inline constexpr std::chrono::month May{5};	     (since C++20)
	  inline constexpr std::chrono::month June{6};	     (since C++20)
	  inline constexpr std::chrono::month July{7};	     (since C++20)
	  inline constexpr std::chrono::month August{8};     (since C++20)
	  inline constexpr std::chrono::month September{9};  (since C++20)
	  inline constexpr std::chrono::month October{10};   (since C++20)
	  inline constexpr std::chrono::month November{11};  (since C++20)
	  inline constexpr std::chrono::month December{12};  (since C++20)

	  The  class  month  represents	a month	in a year. Its normal range is
       [1, 12],	but it
	  may hold any number in [0, 255]. Twelve named	constants  are	prede-
       fined in	the
	  std::chrono namespace	for the	twelve months of the year.

	  month	is a TriviallyCopyable StandardLayoutType.

Member functions
	  constructor	    constructs a month
			    (public member function)
	  operator++
	  operator++(int)   increments or decrements the month
	  operator--	    (public member function)
	  operator--(int)
	  operator+=	    adds or subtracts a	number of months
	  operator-=	    (public member function)
	  operator unsigned retrieves the stored month value
			    (public member function)
	  ok		     checks if the stored month	value is in the	normal
       range
			    (public member function)

	 Nonmember functions

	  operator==  compares two month values
	  operator<=> (function)
	  (C++20)
	  operator+   performs arithmetic on months
	  operator-   (function)
	  (C++20)
	  operator<<  outputs a	month into a stream
	  (C++20)     (function	template)
	  from_stream parses a month from a stream according to	 the  provided
       format
	  (C++20)     (function	template)

Helper classes
	  std::formatter<std::chrono::month>  specialization of	std::formatter
       that formats a
	  (C++20)			     month according to	 the  provided
       format
					     (class template specialization)

http://cppreference.com		  2022.07.31		 std::chrono::month(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::chrono::month&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help