It sounds like there may still be some confusion on one of our parts (or maybe both!). What I'm concerned with here is only the format of a user-supplied timestamp for insertion into the PDF file for Creation or Modification date. I am validating it to make sure it's the right format (and plausible content), and I raised this issue because of conflicting definitions among the various PDF references. 2008 was a while ago, and it's even possible that those definitions have been superseded. Even the example given in the Adobe docs doesn't seem to quite match the words (i.e., omitting seconds). I just want to make sure whatever date/timestamp I allow to pass into a PDF file will be acceptable to the vast majority of editors and Readers.
> The two digit minutes segment is not really needed with the offset notation.
Um, I have seen time zones with 30 minute or even 15 minute offsets compared to their neighbors, so I think it's necessary to support minutes of offset. I have no idea what to do with primitive places that use local solar time!
In the future, I may end up assembling a date/timestamp from the system clock and/or other data, so I'd like to be sure of the format. Lots of information in your post (thank you!); maybe I'll get to make use of much of it soon.
++ EDITES REPLY, fixed more typos
You're welcome.
The topic fascinates me and I am learning as I go. So, please excuse me if you spot any discrepancies in my comments that deviate from the topic.
In any case, my confusion is due to not understaing the context of user date insertion in a file.
All along I've been focused with Date Creation and Modification from the moment a user digitally signs a PDF document with a certificate-based digital signature.
In which case, the validation process is very straight forward, and the date creation and appearance is defined with the SDK guides, like the Acrobat Digital Signature Workflow Guide.
If you are referring to validating the final result of other actions that a user may employ with Acrobat, such as approving a document with dynamic stamps or custom made annotations, capturing the date/time when a document is sent/received via email, sharing a file for comments/review, batch stamping PDF file names with a date/time stamp, exporting/importing date/time stamped documents between Microsoft Office and Acrobat, combining PDFs files or binding PDFs, or indexing catalogs in a computer system to search and file PDFs that may contain a date/time stamp as a file name, that is the part that I am not clear.
As for the issues that you are concerned with:
- conflicting definitions among the various PDF references. 2008 was a while ago, and it's even possible that those definitions have been superseded.
The PDF references are not enough to cover all aspects.
From what I've read Adobe transferred to ISO.org the managing of the reviewing process.
The reviews on these ISO versions are done every 5 years.
The last review on Adobe ISO 32000-1:2008 version 1.7 was done back in 2018 to reflect changes with newer features that has been added to Acrobat.
- Even the example given in the Adobe docs doesn't seem to quite match the words (i.e., omitting seconds)
It won't match because Adobe/ISO 32000-1:2008 is too ample and doesn't focus on how to handle the date/time stamps granularity, comparing dates with different precission, nor how to address the aspects of notating an ambiguous UTC offset with hours, minutes and seconds.
That ambiguity is due to many countries that observe DST based on legal or political reasons, and therefore, those countries that define theirbown DST can change it without notice.
To work around that ambiguity, and how the offset should be notated, is referenced (or complemented) with other guides outside of the generic scope defined in the ISOs.
Most recent changes are addressed through normative references and errata references.
ISO 8601 is the most flexible documentation in terms of how to use date/time formats guidelines, and it is widely used nowadays to define date/time creation stamps.
That being the case, you should reference your workflow based of ISO 8601 standard since it does allows the omission of elements (i.e. dropping the minutes and seconds segments in an offset notation), with many different date/time stamp formats.
However, how to work around date/time formats when comparing two or more dates with different precission, and how to define offset granularity in a human-readable form (like adding or dropping the seconds segment to the offset notation), the ISO standards ( both Adobe/ISO 32000-1:2008 amd ISO 8601) should be referenced further with a date/time stamp profile.
See in the link below what to consider with specific profiles (described in pages 4-9) of the RFC 3339 below:
Also check out this 3WC link:
Read the section FORMAT to the end of the document.
It provides a profile that defines two ways of handling the timezone offsets ambiguity.