GMTIME{"format"} -- formatted GM time
- Syntax:
%GMTIME%OR%GMTIME{"format"}% -
%GMTIME%uses the default date format defined by the {DefaultDateFormat} setting in configure- expands to 02 Dec 2026 - 04:52
- Supported special format tokens:
Token: Unit: Example $secondsseconds 59 $minutesminutes 59 $hourshours 23 $dayday of month 31 $wdayday of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) Thu $dowday of the week (Sun = 0) 2 $weeknumber of week in year (ISO 8601) 34 $monthshort name of month Dec $mo2 digit month 12 $year4 digit year 1999 $ye2 digit year 99 $tzeither "GMT" (if set to gmtime), or "Local" (if set to servertime) GMT $isoISO format timestamp 2026-12-02T04:52:48Z $rcsRCS format timestamp 2026/12/02 04:52:48 $httpE-mail & http format timestamp Wed, 02 Dec 2026 04:52:48 GMT $epochNumber of seconds since 00:00 on 1st January, 1970 1796187168 - Tokens can be shortened to 3 characters
- Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}%expands to02 Dec, 2026 - 04:52:48
When used in a template topic, this macro will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. - Related: GMTIME, REVINFO, SERVERTIME
History: r1 - 19 Sep 2010 - 06:40:32 - ProjectContributor