Namespaces
Variants

std::chrono:: year_month

From cppreference.net
헤더 파일에 정의됨 <chrono>
class year_month ;
(C++20부터)

year_month 클래스는 특정 연도의 특정 월을 나타내지만, 특정 일자는 지정되지 않습니다. 이는 필드 기반 시간 점으로, 해상도는 std::chrono::months 입니다.

year_month TriviallyCopyable StandardLayoutType 입니다.

멤버 함수

year_month 를 생성합니다
(public member function)
저장된 연도와 월에 접근합니다
(public member function)
year_month 를 특정 개월 수 또는 연도 수만큼 수정합니다
(public member function)
year_month 가 유효한지 확인합니다
(public member function)

비멤버 함수

두 개의 year_month 값을 비교
(함수)
year_month 에 대한 산술 연산 수행
(함수)
(C++20)
year_month 를 스트림으로 출력
(함수 템플릿)
지정된 형식에 따라 스트림에서 year_month 를 파싱
(함수 템플릿)

헬퍼 클래스

year_month 에 대한 서식 지원
(클래스 템플릿 특수화)
std::chrono::year_month 에 대한 해시 지원
(클래스 템플릿 특수화)