SysTutorials

Linux Manual Pages › Section 3

stdchronoyearis_leap(3)

std::chrono::year::is_leap - std::chrono::year::is_leap

Synopsis

constexpr bool is_leap() const noexcept; (since C++20) Determines if *this represents a leap year in the proleptic Gregorian calendar. *this represents a leap year if the stored year value

Return value

true if *this represents a leap year, otherwise false.