diff options
| author | Jeremie Bresson | 2015-12-01 20:59:23 +0000 |
|---|---|---|
| committer | Dani Megert | 2016-01-21 14:27:13 +0000 |
| commit | 70e775b9e23132bb9ef9be65ecb2dfbff7353e9f (patch) | |
| tree | 276a8a61e6b12c16e02b0bc84c44ffad326d6a47 | |
| parent | 7c4a6c116938e13e2f4126fdf9471ad0fa872b66 (diff) | |
| download | eclipse.platform.common-70e775b9e23132bb9ef9be65ecb2dfbff7353e9f.tar.gz eclipse.platform.common-70e775b9e23132bb9ef9be65ecb2dfbff7353e9f.tar.xz eclipse.platform.common-70e775b9e23132bb9ef9be65ecb2dfbff7353e9f.zip | |
Bug 75981: [templates][preferences] Allow to specify format of date variable in templatesI20160126-0800I20160125-2000
https://bugs.eclipse.org/bugs/show_bug.cgi?id=75981
Change-Id: I56abd09a93fb4232141832db89f63dd0ce14498e
Signed-off-by: Jeremie Bresson <jbr@bsiag.com>
Signed-off-by: Pramod Goyal <pramod.goyal@gmail.com>
| -rw-r--r-- | bundles/org.eclipse.jdt.doc.user/concepts/concept-template-variables.htm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.jdt.doc.user/concepts/concept-template-variables.htm b/bundles/org.eclipse.jdt.doc.user/concepts/concept-template-variables.htm index 0f0db7e36..82fe23ada 100644 --- a/bundles/org.eclipse.jdt.doc.user/concepts/concept-template-variables.htm +++ b/bundles/org.eclipse.jdt.doc.user/concepts/concept-template-variables.htm @@ -49,9 +49,12 @@ leaving template edit mode.</td> </tr> <tr> - <td><strong>${date}</strong></td> - <td>Evaluates to the current date.</td> - </tr> + <td><strong>${date[(format[, locale])]}</strong></td> + <td>Evaluates to the current date in the specified format and locale. <code>format</code> and <code>locale</code> are optional parameters. <code>format</code> is a pattern compatible with <code>java.text.SimpleDateFormat</code>. <code>locale</code> is a RFC 3066 locale ID. + <p>Examples:<br> + <code>${date}</code>, <code>${currentDate:date('yyyy-MM-dd')}</code> or <code>${d:date('EEEE dd MM yyyy', 'fr_CH')}</code> + </p> + </td> <tr> <td><strong>${dollar}</strong></td> <td>Evaluates to the dollar symbol <code>$</code>. Alternatively, two dollars can be used: <code>$$</code>.</td> |
