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 23 May 2012 - 13:00
- 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-23T13:00:15Z $rcsRCS format timestamp 2012/05/23 13:00:15 $httpE-mail & http format timestamp Wed, 23 May 2012 13:00:15 GMT $epochNumber of seconds since 00:00 on 1st January, 1970 1337778015 - Tokens can be shortened to 3 characters
- Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}%expands to23 May, 2012 - 13:00:15
When used in a template topic, this macro will be expanded when the template is used to create a new topic. See Template Topics#Template Topics Vars for details. - Related: GMTIME, REVINFO, SERVERTIME