24 const uint16_t kMinimumSaneYear = 1964;
25 const uint16_t kMaximumSaneYear = 2064;
27 if (dateTime.
fYear < kMinimumSaneYear) {
29 "SkPDFUtils::GetDateTime: %u (CurrentYear) < %u (MinimumSaneYear)",
30 static_cast<unsigned>(dateTime.
fYear),
31 static_cast<unsigned>(kMinimumSaneYear));
33 if (dateTime.
fYear > kMaximumSaneYear) {
35 "SkPDFUtils::GetDateTime: %u (CurrentYear) > %u (MaximumSaneYear)",
36 static_cast<unsigned>(dateTime.
fYear),
37 static_cast<unsigned>(kMaximumSaneYear));
59 INFOF(r,
"\nCurrent Time (ISO-8601 format): \"%s\"\n",
constexpr int SkToInt(S x)
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
#define INFOF(REPORTER,...)
const char * c_str() const
void GetDateTime(SkPDF::DateTime *)
void toISO8601(SkString *dst) const