From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: date problem
Date: Wed, 20 Mar 2013 15:50:17 +0100 [thread overview]
Message-ID: <E7F504B9-C67A-44D5-AFC1-A9BA94E5EA6B@gmail.com> (raw)
In-Reply-To: <9C45DD42-66CC-44D5-97F0-E008E1834D96@uva.nl>
Am 20.03.2013 um 15:29 schrieb "Meer H. van der" <H.vanderMeer@uva.nl>:
> I see. But this is not working too. Following your suggestion I now get:
> \edef\thisdate{\ctxcommand{currentdate("month, ,day, , year","\currentlanguage")}}\writestatus{***}{\meaning\thisdate}
> *** > macro:->\labeltext {march} 20 2013
> The problem is essentially the same.
\starttext
\writestatus{***}{\cldcontext{os.date("\letterpercent Y\space\letterpercent m\space\letterpercent d")}}
\stoptext
> I am most unhappy with this, because fixing the current date in some macro shouldn't be impossible.
\starttext
\writestatus{***}{\number\normalyear \space \number\normalmonth \space \number\normalday}
\stoptext
> And why all those extra ,s in month, ,day, , year?
This should be “month,space,day,space,year”, “space” in this list is a keywords to add a space between the entries.
> I would suggest that besides \currentdate one should be able to also use \currentdate[month][day][year][language], \currentdate[day][mont][year][language],etc. And then be able to store the expansion in a macro. Is it possible to incorporate this in the next beta?
http://wiki.contextgarden.net/Command/date
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2013-03-20 14:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 13:26 H. van der Meer
2013-03-20 13:39 ` Wolfgang Schuster
2013-03-20 13:52 ` Meer H. van der
2013-03-20 14:11 ` Wolfgang Schuster
2013-03-20 14:29 ` Meer H. van der
2013-03-20 14:50 ` Wolfgang Schuster [this message]
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=E7F504B9-C67A-44D5-AFC1-A9BA94E5EA6B@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/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).