diff --git a/include/infra/chrono.h b/include/infra/chrono.h index f53f5ade..f2e0723e 100644 --- a/include/infra/chrono.h +++ b/include/infra/chrono.h @@ -24,6 +24,7 @@ namespace inf::chrono { #ifdef HAVE_CPP20_CHRONO using days = std::chrono::days; +using year = std::chrono::year; using date_point = std::chrono::time_point; using time_point = std::chrono::time_point; @@ -31,6 +32,7 @@ using local_date_point = std::chrono::local_days; using local_time_point = std::chrono::local_time; #else using days = date::days; +using year = date::year; using date_point = std::chrono::time_point; using time_point = std::chrono::time_point;