1 <a name="VarGMTIME2"></a>
3 ### <a name="GMTIME{"format"} -- formatted GM"></a> GMTIME\{"format"\} -- formatted GM time
5 - Syntax: `%GMTIME{"format"}%`
6 - Supported variables: <table border="1" cellpadding="0" cellspacing="0">
8 <th bgcolor="#99CCCC"><strong> Variable: </strong></th>
9 <th bgcolor="#99CCCC"><strong> Unit: </strong></th>
10 <th bgcolor="#99CCCC"><strong> Example </strong></th>
13 <td><code>$seconds</code></td>
18 <td><code>$minutes</code></td>
23 <td><code>$hours</code></td>
28 <td><code>$day</code></td>
29 <td> day of month </td>
33 <td><code>$wday</code></td>
34 <td> day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) </td>
38 <td><code>$dow</code></td>
39 <td> day of the week (Sun = 0) </td>
43 <td><code>$week</code></td>
44 <td> number of week in year (ISO 8601) </td>
48 <td><code>$month</code></td>
49 <td> short name of month </td>
53 <td><code>$mo</code></td>
54 <td> 2 digit month </td>
58 <td><code>$year</code></td>
59 <td> 4 digit year </td>
63 <td><code>$ye</code></td>
64 <td> 2 digit year </td>
68 <td><code>$tz</code></td>
69 <td> either "GMT" (if set to gmtime), or "Local" (if set to servertime) </td>
73 <td><code>$iso</code></td>
74 <td> ISO format timestamp </td>
75 <td> 2010-06-29T16:09:19Z </td>
78 <td><code>$rcs</code></td>
79 <td> RCS format timestamp </td>
80 <td> 2010/06/29 16:09:19 </td>
83 <td><code>$http</code></td>
84 <td> E-mail & http format timestamp </td>
85 <td> Tue, 29 Jun 2010 16:09:19 GMT </td>
88 <td><code>$epoch</code></td>
89 <td> Number of seconds since 00:00 on 1st January, 1970 </td>
93 - Variables can be shortened to 3 characters
94 - Example: `%GMTIME{"$day $month, $year - $hour:$min:$sec"}%` expands to `29 Jun, 2010 - 16:09:19`
95 - **_%X% Note:_** When used in a template topic, this variable will be expanded when the template is used to create a new topic. See [[TWikiTemplates#TemplateTopicsVars]] for details.
96 - Related: [[DISPLAYTIME|Main/VarDISPLAYTIME]], [[GMTIME|Main/VarGMTIME]], [[REVINFO|Main/VarREVINFO2]], [[SERVERTIME|Main/VarSERVERTIME]]