\date format according to ISO 8601
Hi, in my opinion it makes sense to display the date in ISO 8601 format. now: \date results in: January 31, 2011 ISO 8601: \date would result in: 2011–01–31 In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Regards Marco
Hi, I wouldn't like the idea of displaying \date in ISO 8601 format. I'd rather prefer the human-readable version. The ISO 8601 is a standard for "exchange of date and time-related data" [1], not for text documents made for humans to read. How to get what you want is explained here [2], I think. HTH. [1] http://en.wikipedia.org/wiki/ISO_8601 [2] http://wiki.contextgarden.net/Reference/en/date Best regards, Stefan On 01.02.2011 00:03, Marco wrote:
Hi,
in my opinion it makes sense to display the date in ISO 8601 format.
now: \date results in: January 31, 2011 ISO 8601: \date would result in: 2011–01–31
In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like
\setupdate [format={year, –, mm, –, day}]
Regards Marco
On 2011-02-01 Stefan Müller
Hi,
I wouldn't like the idea of displaying \date in ISO 8601 format. I'd rather prefer the human-readable version. The ISO 8601 is a standard for "exchange of date and time-related data" [1], not for text documents made for humans to read.
How to get what you want is explained here [2], I think. HTH.
No, not really. \currentdate [year, –, mm, –, dd] gives me the date in ISO 8601 format. To force consistency it makes sense to specify the date format in a *global* setup like
\setupdate [format={year, –, mm, –, dd}]
to avoid ugly constructions like \def\Today{\currentdate [year, –, mm, –, dd]} Regards Marco
On Tue, Feb 1, 2011 at 00:03, Marco wrote:
In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like
\setupdate [format={year, –, mm, –, day}]
Your question wasn't clear at first. Is this what you want? \setuplanguage[en][date={year,–,mm,–,dd}] Mojca
On 2011-02-01 Mojca Miklavec
On Tue, Feb 1, 2011 at 00:03, Marco wrote:
In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like
\setupdate [format={year, –, mm, –, day}]
Your question wasn't clear at first. Is this what you want?
\setuplanguage[en][date={year,–,mm,–,dd}]
Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate. Thanks Mojca Marco
On Tue, Feb 1, 2011 at 18:38, Marco wrote:
On 2011-02-01 Mojca Miklavec wrote:
On Tue, Feb 1, 2011 at 00:03, Marco wrote:
In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like
\setupdate [format={year, –, mm, –, day}]
Your question wasn't clear at first. Is this what you want?
\setuplanguage[en][date={year,–,mm,–,dd}]
Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate.
It's because each language requires a different output, but I share your thoughts. Please leave a note at http://wiki.contextgarden.net/Reference/en/date. Mojca
On 2011-02-01 Mojca Miklavec
Your question wasn't clear at first. Is this what you want?
\setuplanguage[en][date={year,–,mm,–,dd}]
Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate.
It's because each language requires a different output, but I share your thoughts.
Please leave a note at http://wiki.contextgarden.net/Reference/en/date.
Done Marco
participants (3)
-
Marco
-
Mojca Miklavec
-
Stefan Müller