ietf
[Top] [All Lists]

Re: What day is 2010-01-02

2010-03-15 10:25:28
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/13/2010 07:25 AM, Cullen Jennings wrote:

Wow - I never imagined such a rapid response to this question. Thanks. 

I've replied with roughly "Yep, they might be a bit confusing but everything 
else is worse so that's what we use".

Another solution is to let the user choose the representation.  Attached is a
patch to add an option in the trac preference panel for the presentation format.

The second attachment is a macro that can be used in the wiki to annotate the
dates, something like this:

[[Date(2010-01-02)]]

For example with a format of "%a, %d %b %Y", the wiki will display this:

Fri, 01 Jan 2010


- -- 
Marc Petit-Huguenin
Personal email: marc(_at_)petit-huguenin(_dot_)org
Professional email: petithug(_at_)acm(_dot_)org
Blog: http://blog.marc.petit-huguenin.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkub2GIACgkQ9RoMZyVa61caQACdHMgMaGnmn2PdhSArddvUZ9l5
TFkAoI4B+dJW3mEhCTsFCwdazBMXh/fQ
=b0km
-----END PGP SIGNATURE-----

Attachment: date.patch
Description: Text Data

Attachment: Date.py
Description: Text Data

_______________________________________________
Ietf mailing list
Ietf(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/ietf
<Prev in Thread] Current Thread [Next in Thread>