[alicebot-archcomm] Date output

Sandro Golinelli alicebot-archcomm@list.alicebot.org
Tue, 29 Jul 2003 10:45:43 +0200


----- Original Message -----
From: "Ernest Lergon" <ernest@virtualitas.net>


> Proposal:
>
>     <date [format="{format}"] [lang="{lang}"]/>
>
>     {format} := "DD.MM.YYYY hh:mm:ss" |
>                 "YYYY-MM-DD hh:mm:ss TZ" |
>                 "wd, DD Mn YYYY hh:mm:ss TZ" |
>                 | etc...
>
>     e.g.:       "26.07.2003 15:20:32"
>                 "2003-07-26 15:20:32 GMT"
>                 "Sat, 26 Jul 2003 15:20:32 GMT"
>
>     {lang}   := 'de' | 'us' | 'en' | etc...
>
> We should extend the <date> tag with attributes defining the output
> format of the date to reflect the different international usage and
> languages. Moreover it might be useful to just ouput the year or the
> weekday.
>
> Ernest
>

This proposal, per se, is ok and defining the string date format shall be
discussed.

I could suggest to use a more natural format than those used in the links
Ernest provided.
I dont have example to show but i can say that the php and unix like date
format string is confusing but more complete than the java ones.

Why not even something to manage date inputs too?


--
Sandro Golinelli