Project

General

Profile

Feature #8508

Use C++20's time zone support in std::chrono by default if supported.

Added by Roel Standaert about 1 month ago. Updated 23 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/26/2021
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)

Description

C++ compiler and STL implementations are getting C++20 feature complete, so we can look into replacing the date library with it. This would be especially nice on Windows, since using time zones on Windows would not require extra setup anymore.

I think this can be done similarly to how we do Wt::cpp17::any:

  • Have a CMake option to select the implementation, defaulting to the STL implementation if supported
  • Introduce a Wt::cpp20::chrono namespace that is aliased to std::chrono or date

WDate, WTime, WDateTime, and WLocalDateTime may no longer be necessary. We could look into adding overrides in the right places, so that their use can be avoided if desired.


Subtasks

Feature #8595: Add the option to use std::chrono's date and time zone supportResolvedRoel Standaert05/26/2021

Actions

No data to display

Also available in: Atom PDF