Thank you very much hippo for advice.

For my rehabilitation i would like to say that i was a bit confused about this issue. I observed different behavior of my code on Win, Linux and Mac. And the various timestamp formats that one can pass to PDFs are a mess and put me over the edge. Perhaps i didn't see the basic problem and jumped to some wrong conclusions ;-).

For completeness:

"$mday is the day of the month and $mon the month in the range 0..11..."
karls-mac-mini:monks karl$ perl -E '$day=(localtime)[3]; say $day;' 13 karls-mac-mini:monks karl$ perl -E '$month=(localtime)[4]; say $month; +' 5 karls-mac-mini:monks karl$ perl -E '$month=(localtime)[4]; say ++$mont +h;' 6 karls-mac-mini:monks karl$ date +%m 06

D'oh!

Update: I just run my modified code on a PDF created on Win:

CreationDate was 06.06.2015 16:12 and now it is 06.06.2015 18:12.

This crap drives me insane.

Edit: Minor changes. Ain't no fun no more.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»


In reply to Re^2: How To Modify PDF Metadata by karlgoethebier
in thread How To Modify PDF Metadata [SOLVED] by karlgoethebier

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.