diff options
author | tobo <tobo@yandex-team.com> | 2024-06-18 22:38:04 +0300 |
---|---|---|
committer | tobo <tobo@yandex-team.com> | 2024-06-18 22:48:09 +0300 |
commit | 3feae57cff571fa304e22c45521f5a89ae28f498 (patch) | |
tree | b4f461cbb69d151fed4e62d7698a9b71bfac98a5 | |
parent | d024de4c41a3bc10bc73eadb3b0c5820150c3a3d (diff) | |
download | ydb-3feae57cff571fa304e22c45521f5a89ae28f498.tar.gz |
fix typo
f172ae24ead4a8c8edae837d34f264a744a4d89c
-rw-r--r-- | util/datetime/systime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp index cb12cfdcf2..fe1d7b99d6 100644 --- a/util/datetime/systime.cpp +++ b/util/datetime/systime.cpp @@ -87,11 +87,11 @@ namespace { return year % 400 == 0; } - constexpr ui16 YEAR_PER_YEAR = 365; - constexpr ui16 YEAR_PER_LEAP_YEAR = 366; + constexpr ui16 DAYS_IN_YEAR = 365; + constexpr ui16 DAYS_IN_LEAP_YEAR = 366; constexpr ui16 YearSize(int year) { - return IsLeapYear(year) ? YEAR_PER_LEAP_YEAR : YEAR_PER_YEAR; + return IsLeapYear(year) ? DAYS_IN_LEAP_YEAR : DAYS_IN_YEAR; } constexpr ui64 FOUR_CENTURIES = (400 * 365 + 100 - 3); |