ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michal Vlasák via ntg-context" <ntg-context@ntg.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: "Michal Vlasák" <lahcim8@gmail.com>, "Pablo Rodriguez" <oinos@gmx.es>
Subject: Re: setting date in \setupinteraction
Date: Tue, 19 Oct 2021 18:23:35 +0200	[thread overview]
Message-ID: <CF3ITRMESQWS.2KUDQQPR2XL84@deimos> (raw)
In-Reply-To: <adc89f1d-898c-0f7e-3cd1-1fc4fcaba76f@gmx.es>

On Tue Oct 19, 2021 at 5:47 PM CEST, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> I have the following sample:
>
> \setupinteraction[state=start,
> date={02.02.2022}]
> \starttext
> This document is from 02.02.2020 at 12:00:21.
> \stoptext
>
> Which is the right way to get PDF dates working with \setupinteraction?

According to lpdf-mis.lmt about the "date" parameter:

    -- users should enter the date in 2010-01-19T23:27:50+01:00 format
    -- and if not provided that way we use the creation time instead

I can get this format also with `date --iso-8601=seconds` or the shorter
`date -Iseconds`.

So this works:


    \setupinteraction[state=start,
      date={2022-02-02T12:00:21+02:00}]
    \starttext
    This document is from 02.02.2020 at 12:00:21.
    \stoptext

This parameter sets the "ModDate" is that what you are after?

Seems that "CreationDate" could be set by the SOURCE_DATE_EPOCH
environment variable, but I am not succesfull with it right now.

Michal
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-10-19 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19 15:47 Pablo Rodriguez via ntg-context
2021-10-19 16:23 ` Michal Vlasák via ntg-context [this message]
2021-10-19 18:51   ` Pablo Rodriguez via ntg-context
2021-10-19 20:38     ` Michal Vlasák via ntg-context
2021-10-20 14:02       ` Hans Hagen via ntg-context
2021-10-21 16:38         ` Pablo Rodriguez via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CF3ITRMESQWS.2KUDQQPR2XL84@deimos \
    --to=ntg-context@ntg.nl \
    --cc=lahcim8@gmail.com \
    --cc=oinos@gmx.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).