// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "pdf/pdf_utils/dates.h" #include <stdint.h> #include <optional> #include <string_view> #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/time/time.h" namespace chrome_pdf { namespace { class DateDeserializer final { … }; // Parses the offset info in `deserializer`, which is the time offset portion of // the date format provided in section 7.9.4 "Dates" of the ISO 32000-1:2008 // spec. An input is expected to look like "HH'mm", such that "HH" is the hour // and "mm" is the minute. base::TimeDelta ParseOffset(DateDeserializer& deserializer) { … } } // namespace base::Time ParsePdfDate(std::string_view date) { … } } // namespace chrome_pdf