You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when using the %%date (and %%mtime) macro without formatting, the
default date is expanded to the YYYYMMAA format.
It's mentioned in samples/sample.t2t that this is the ISO format. It's true,
it's ISO 8601. But we're using the basic format, without separators. I think
it's better to use the extended format, with hyphens: YYYY-MM-DD.
From http://en.wikipedia.org/wiki/ISO_8601:
For example, the 6th day of the 1st month of the year 2009 may be written as
"2009-01-06" in the extended format or simply as "20090106" in the basic format
without ambiguity. The extended formats are preferred over the basic formats
not only for human readability, but because some basic formats can appear to be
ambiguous to those unfamiliar with the standard.
The downside is that YYYYMMDD is the format used since day zero, because %%date
was created in txt2tags-0.1. It will surprise users.
Consider making this change now or in v3.
Original issue reported on code.google.com by aureliojargas@gmail.com on 10 Dec 2010 at 9:48
The text was updated successfully, but these errors were encountered:
YYYY-MM-DD is way better than YYYYMMAA, but it's never a good thing to surprise
users this way if they expect something else.
So here are the options:
- keep the not very user friendly default behavior and use a new switch to
change this behavior (like --fix-date or --extended-date) but people annoyed by
the default behavior would probably have already used %%date(%Y-%m-%d) or even
a preproc to change this. I'm less in favor of this.
- change the current default behavior and wait to see users' feedbacks. No
reaction = nobody care and everybody is pleased. It's probably quite safe to
use this option.
Original comment by eforg...@gmail.com on 11 Dec 2010 at 10:55
I'm against a new option just for this little issue. On the other hand, maybe a
%!dateformat: %Y-%m-%d
setting to config the default %%date format when none is specified could be
interesting.
Original comment by aureliojargas@gmail.com on 15 Dec 2010 at 4:18
Original issue reported on code.google.com by
aureliojargas@gmail.com
on 10 Dec 2010 at 9:48The text was updated successfully, but these errors were encountered: