File indexing completed on 2025-01-05 04:55:51

0001 /*
0002     utils/chrono.h
0003 
0004     This file is part of libkleopatra, the KDE keymanagement library
0005     SPDX-FileCopyrightText: 2023 g10 Code GmbH
0006     SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #pragma once
0012 
0013 #include <QMetaType>
0014 
0015 #include <chrono>
0016 
0017 namespace Kleo::chrono
0018 {
0019 // typedef for duration in days (defined in C++20)
0020 using days = std::chrono::duration<std::chrono::seconds::rep, std::ratio<86400>>;
0021 }
0022 
0023 Q_DECLARE_METATYPE(Kleo::chrono::days)