Home GnuPG

Use the appropriate std::chrono type for the thresholds

Description

Use the appropriate std::chrono type for the thresholds

Use the std::chrono::duration "days" as type for the thresholds. Since
std::chrono::days exists since C++20 we add our own typedef.
Internally, also always use days instead of a mix of seconds and days by
using an Expiration type.
Additionally, change the meaning of the UI texts "... expired n days ago"
to mean "n full days ago".

Details

Provenance
ikloeckerAuthored on Mar 27 2023, 9:21 AM
Parents
rLIBKLEOa8d3694243bc: Test ExpiryChecker without accessing private data
Branches
Unknown
Tags
Unknown