ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Time stamp on PDFs
       [not found] <CAE0RQynRSCaCwCwf_hbJFAWhLMJXW3jZpVuUHM_BPV-h8=LgSw@mail.gmail.com>
@ 2025-06-20 11:13 ` Wolfgang Schuster
  0 siblings, 0 replies; only message in thread
From: Wolfgang Schuster @ 2025-06-20 11:13 UTC (permalink / raw)
  To: ntg-context

Am 20.06.2025 um 12:37 schrieb John Was:
> I have figured out how to place a date stamp on my PDFs (outside of the 
> printable area bounded by crop marks) but I would ideally like to 
> include the time of processing as well.  I don't see anything like the 
> plain TeX primitive \time (and when out of curiosity I tried '\the\time' 
> this returned a mysterious number - today it is '691' - which doesn't 
> seem relevant).

Use \currenttime, the following example shows also how to use the result 
of the \time command.

\starttext

Current time: \currenttime

\blank

At the moment
\the\numexpr\time/60\relax\space
hours and
\the\numexpr\time;60\relax\space
minutes have passed since midnight.

\blank

At the moment
\the\time\space
minutes have passed since midnight.

\blank

\calculatecurrenttime % set values for the time commands

At the moment
\currenthour\space
hours,
\currentminute\space
minutes and
\currentsecond\space
seconds have passed since midnight.

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-06-20 11:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAE0RQynRSCaCwCwf_hbJFAWhLMJXW3jZpVuUHM_BPV-h8=LgSw@mail.gmail.com>
2025-06-20 11:13 ` [NTG-context] Re: Time stamp on PDFs Wolfgang Schuster

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).