std::chrono::year::operator int

From cppreference.com
< cpplrm; | chronolrm; | year
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
explicit constexpr operator int() const noexcept;
(since C++20)

Returns the year value stored in *this.

Return value

The year value stored in *this.