std::chrono:: year_month_weekday_last
From cppreference.net
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year_month_weekday_last
| Member functions | ||||
| Nonmember functions | ||||
| Helper classes | ||||
|
헤더 파일에 정의됨
<chrono>
|
||
|
class
year_month_weekday_last
;
|
(C++20부터) | |
year_month_weekday_last
클래스는 특정 연도와 월의 마지막 평일(weekday)을 나타냅니다. 이는 필드 기반 시간 점으로,
std::chrono::days
의 해상도를 가지지만, 연도와 월의 마지막 평일만을 가리키도록 제한됩니다.
std::chrono::years
및
std::chrono::months
지향 산술 연산이 직접 지원됩니다.
std::chrono::sys_days
로의 암시적 변환을 통해
std::chrono::days
지향 산술 연산을 효율적으로 수행할 수 있습니다.
year_month_weekday_last
는
TriviallyCopyable
StandardLayoutType
입니다.
멤버 함수
year_month_weekday_last
객체를 생성합니다
(public member function) |
|
|
시간점을 몇 개월 또는 몇 년만큼 수정합니다
(public member function) |
|
|
이 객체의 필드에 접근합니다
(public member function) |
|
|
std::chrono::time_point
로 변환합니다
(public member function) |
|
|
이 객체가 유효한 날짜를 나타내는지 확인합니다
(public member function) |
비멤버 함수
|
(C++20)
|
두
year_month_weekday_last
값을 비교
(함수) |
|
(C++20)
|
year_month_weekday_last
와 일부 연수 또는 월수를 더하거나 뺌
(함수) |
|
(C++20)
|
year_month_weekday_last
를 스트림으로 출력
(함수 템플릿) |
헬퍼 클래스
year_month_weekday_last
에 대한 서식 지원
(클래스 템플릿 특수화) |
|
|
std::chrono::year_month_weekday_last
에 대한 해시 지원
(클래스 템플릿 특수화) |