CustomWizard: Support current date and time in default texts

This provides the functionality for the documented, but not working,
%CurrentDate% and %CurrentTime%.
Changes these two to locale independent format YYYY-MM-DD and HH:MM:SS.
Also adds explicit variants %CurrentDate:ISO%, %CurrentTime:ISO%,
%CurrentDate:RFC%, %CurrentTime:RFC%, %CurrentDate:Locale% and
%CurrentTime:Locale% which format the date and time as described
by ISO 8601, RFC 2822 and the Locale respectively.

Task-number: QTCREATORBUG-9963

Change-Id: I39a5c0f3b606559bf4f5c5e40e421f338de4c5a4
Reviewed-by: Lorenz Haas <lykurg@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Lorenz Haas
2013-08-12 15:59:52 +02:00
committed by Eike Ziller
parent 15086363ef
commit 497b2ae45d
3 changed files with 48 additions and 17 deletions

View File

@@ -585,10 +585,28 @@
which is also defined in \gui {File Naming}.
\li \c {%CurrentDate%} is replaced by the current date in the format
\c {yyyy-MM-dd}.
\c {YYYY-MM-DD} as specified by ISO 8601.
\li \c {%CurrentTime%} is replaced by the current time in the short
format of the locale.
\li \c {%CurrentTime%} is replaced by the current time in the format
\c {HH:MM:SS} as specified by ISO 8601.
\li \c {%CurrentDate:Locale%} is replaced by the current date in the short format
specified by the application's locale.
\li \c {%CurrentTime:Locale%} is replaced by the current time in the short format
specified by the application's locale.
\li \c {%CurrentDate:ISO%} is replaced by the current date in the format
\c {YYYY-MM-DD} as specified by ISO 8601.
\li \c {%CurrentTime:ISO%} is replaced by the current time in the format
\c {HH:MM:SS} as specified by ISO 8601.
\li \c {%CurrentDate:RFC%} is replaced by the current date in the format
\c {DD Mon YYYY}, where \c {Mon} is the three letter month name, as specified by RFC 2822.
\li \c {%CurrentTime:RFC%} is replaced by the current time in the format
\c {HH:MM:SS} as specified by RFC 2822.
\endlist