forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user