[libc-commits] [libc] [libc] create TimeReader to look at a struct tm (PR #126138)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Feb 6 15:12:46 PST 2025


================
@@ -40,6 +50,9 @@ constexpr int MONTHS_PER_YEAR = 12;
 constexpr int DAYS_PER_NON_LEAP_YEAR = 365;
 constexpr int DAYS_PER_LEAP_YEAR = 366;
 
+constexpr int LAST_DAY_OF_NON_LEAP_YEAR = DAYS_PER_NON_LEAP_YEAR - 1;
+constexpr int LAST_DAY_OF_LEAP_YEAR = DAYS_PER_LEAP_YEAR - 1;
----------------
nickdesaulniers wrote:

Check that these are used in your later patches?

https://github.com/llvm/llvm-project/pull/126138


More information about the libc-commits mailing list