From 065e680392462b63f419779a9b7f04cc05cbbed1 Mon Sep 17 00:00:00 2001 From: Dirk Vanden Boer Date: Tue, 20 Feb 2024 16:29:58 +0100 Subject: [PATCH] year alias added --- include/infra/chrono.h | 2 ++ 1 file changed, 2 insertions(+) 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;