13 #include "PdfString.h"
44 PdfDate(
const std::chrono::seconds& secondsFromEpoch,
57 static PdfDate Parse(
const std::string_view& dateStr);
58 static bool TryParse(
const std::string_view& dateStr,
PdfDate& date);
65 static PdfDate ParseW3C(
const std::string_view& dateStr);
66 static bool TryParseW3C(
const std::string_view& dateStr,
PdfDate& date);
78 PdfString ToString()
const;
82 PdfString ToStringW3C()
const;
84 bool operator==(
const PdfDate& rhs)
const;
85 bool operator!=(
const PdfDate& rhs)
const;
91 PdfString createStringRepresentation(
bool w3cstring)
const;
94 std::chrono::seconds m_SecondsFromEpoch;
95 nullable<std::chrono::minutes> m_MinutesFromUtc;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
This class is a date datatype as specified in the PDF reference.
Definition: PdfDate.h:34
PdfDate(const std::chrono::seconds &secondsFromEpoch, const nullable< std::chrono::minutes > &minutesFromUTC)
Create a PdfDate with a specified date/time and offset from UTC.
const std::chrono::seconds & GetSecondsFromEpoch() const
Definition: PdfDate.h:71
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16