aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-11 12:51:21 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-11 20:26:55 +0100
commit8fbc8579f2481dc3eeb962e99522047291e16fbe (patch)
treee7bffe25a0ffacc3495012e1e42e87a5e5fdb20b /include/qpdf/QUtil.hh
parentdf067c9ab68dd4913a1591f048d9baf4f1c8d09c (diff)
downloadqpdf-8fbc8579f2481dc3eeb962e99522047291e16fbe.tar.zst
Allow zone information to be omitted from timestamp strings
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index 09a6c181..5b1f8aae 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -203,8 +203,9 @@ namespace QUtil
// Convert a QPDFTime structure to a PDF timestamp string, which
// is "D:yyyymmddhhmmss<z>" where <z> is either "Z" for UTC or
- // "-hh'mm'" or "+hh'mm'" for timezone offset. Examples:
- // "D:20210207161528-05'00'", "D:20210207211528Z". See
+ // "-hh'mm'" or "+hh'mm'" for timezone offset. <z> may also be
+ // omitted. Examples: "D:20210207161528-05'00'",
+ // "D:20210207211528Z", "D:20210207211528". See
// get_current_qpdf_time and the QPDFTime structure above.
QPDF_DLL
std::string qpdf_time_to_pdf_time(QPDFTime const&);