feat(clock): support chrono Time Zone extensions.

Use chrono Calendars and Time Zones (P0355R7, P1466R3) when available
instead of the `date` library.
Verified with a patched build of a recent GCC 13 snapshot.
This commit is contained in:
Aleksei Bavshin
2023-01-16 17:30:06 -08:00
parent 6225db0a48
commit 93e340a081
5 changed files with 45 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <json/json.h>
#ifdef HAVE_LIBDATE
#if defined(HAVE_CHRONO_TIMEZONES) || defined(HAVE_LIBDATE)
#include "modules/clock.hpp"
#else
#include "modules/simpleclock.hpp"