From 497b2ae45dbc996a9a8e7a655734eaf25124c549 Mon Sep 17 00:00:00 2001 From: Lorenz Haas Date: Mon, 12 Aug 2013 15:59:52 +0200 Subject: 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 Reviewed-by: Leena Miettinen Reviewed-by: Eike Ziller --- .../projects/creator-projects-custom-wizards.qdoc | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'doc') 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 -- cgit v1.2.1