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 22 May 2012 - 00:06
- 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 2012-05-22T00:06:58Z $rcsRCS format timestamp 2012/05/22 00:06:58 $httpE-mail & http format timestamp Tue, 22 May 2012 00:06:58 GMT $epochNumber of seconds since 00:00 on 1st January, 1970 1337645218 - Tokens can be shortened to 3 characters
- Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}%expands to22 May, 2012 - 00:06:58 -
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