summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLorenz Haas <lykurg@gmail.com>2013-08-12 15:59:52 +0200
committerEike Ziller <eike.ziller@digia.com>2014-02-14 14:56:31 +0100
commit497b2ae45dbc996a9a8e7a655734eaf25124c549 (patch)
treeead832f6475107b470cbb8c075ae8a53f83d56df /doc
parent15086363ef788759051b13eb9ef86544a05051da (diff)
downloadqt-creator-497b2ae45dbc996a9a8e7a655734eaf25124c549.tar.gz
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/projects/creator-projects-custom-wizards.qdoc24
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/src/projects/creator-projects-custom-wizards.qdoc b/doc/src/projects/creator-projects-custom-wizards.qdoc
index 943d557206..d4fc42504c 100644
--- a/doc/src/projects/creator-projects-custom-wizards.qdoc
+++ b/doc/src/projects/creator-projects-custom-wizards.qdoc
@@ -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