ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* time/date in metafun/metapost
@ 2001-10-01 20:53 Patrick Gundlach
  2001-10-04 16:03 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2001-10-01 20:53 UTC (permalink / raw)


Hi out there. It is getting late, but I hope my metapost problem is not 
there because I cannot think at this time anymore...

So, I have the following code:
% output=pdf
\starttext
\startMPcode
show year;
show month;
show day;
show time;
\stopMPcode
\stoptext

The time displayed is the time of the generated format. How do I get the 
current time? (well, the time at which the job is run.)  Do I have to use 
context to pass the current time etc. thru variables?

-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: time/date in metafun/metapost
  2001-10-01 20:53 time/date in metafun/metapost Patrick Gundlach
@ 2001-10-04 16:03 ` Hans Hagen
  2001-10-12 18:29   ` Patrick Gundlach
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-10-04 16:03 UTC (permalink / raw)
  Cc: ntg-context

At 10:53 PM 10/1/2001 +0200, Patrick Gundlach wrote:
>Hi out there. It is getting late, but I hope my metapost problem is not
>there because I cannot think at this time anymore...
>
>So, I have the following code:
>% output=pdf
>\starttext
>\startMPcode
>show year;
>show month;
>show day;
>show time;
>\stopMPcode
>\stoptext
>
>The time displayed is the time of the generated format. How do I get the
>current time? (well, the time at which the job is run.)  Do I have to use
>context to pass the current time etc. thru variables?

\startMPcode
mytime := \the\normaltime ;
myyear := \the\normalyear ;
....

enz

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: time/date in metafun/metapost
  2001-10-04 16:03 ` Hans Hagen
@ 2001-10-12 18:29   ` Patrick Gundlach
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2001-10-12 18:29 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 158 bytes --]

Hello,

[...]
> \startMPcode
> mytime := \the\normaltime ;
> myyear := \the\normalyear ;

[...]

woks fine. Thanks.

-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-10-12 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-01 20:53 time/date in metafun/metapost Patrick Gundlach
2001-10-04 16:03 ` Hans Hagen
2001-10-12 18:29   ` Patrick Gundlach

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