Skip to content

Commit

Permalink
year alias added
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Feb 20, 2024
1 parent 044f29f commit 065e680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/infra/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ namespace inf::chrono {

#ifdef HAVE_CPP20_CHRONO
using days = std::chrono::days;
using year = std::chrono::year;
using date_point = std::chrono::time_point<std::chrono::system_clock, days>;
using time_point = std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>;

using local_date_point = std::chrono::local_days;
using local_time_point = std::chrono::local_time<std::chrono::milliseconds>;
#else
using days = date::days;
using year = date::year;
using date_point = std::chrono::time_point<std::chrono::system_clock, days>;
using time_point = std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>;

Expand Down

0 comments on commit 065e680

Please sign in to comment.