data/TWiki/VarGMTIME2.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 %META:TOPICINFO{author="TWikiContributor" date="1174329144" format="1.1" version="3"}%
     2 %META:TOPICPARENT{name="TWikiVariables"}%
     3 #VarGMTIME2
     4 
     5 ---+++ GMTIME{"format"} -- formatted GM time
     6    * Syntax: =%<nop>GMTIME{"format"}%=
     7    * Supported variables:
     8      | *Variable:* | *Unit:* | *Example* |
     9      | =$seconds= | seconds | 59 |
    10      | =$minutes= | minutes | 59 |
    11      | =$hours= | hours | 23 |
    12      | =$day= | day of month | 31 |
    13      | =$wday= | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu |
    14      | =$dow= | day of the week (Sun = 0) | 2  |
    15      | =$week= | number of week in year (ISO 8601) | 34 |
    16      | =$month= | short name of month | Dec |
    17      | =$mo= | 2 digit month | 12 |
    18      | =$year= | 4 digit year | 1999 |
    19      | =$ye= | 2 digit year | 99 |
    20      | =$tz= | either "GMT" (if set to gmtime), or "Local" (if set to servertime) | GMT |
    21      | =$iso= | ISO format timestamp | %GMTIME{"$iso"}% |
    22      | =$rcs= | RCS format timestamp | %GMTIME{"$rcs"}% |
    23      | =$http= | E-mail & http format timestamp | %GMTIME{"$http"}% |
    24      | =$epoch= | Number of seconds since 00:00 on 1st January, 1970 | %GMTIME{"$epoch"}% |
    25    * Variables can be shortened to 3 characters
    26    * Example: =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= expands to =%GMTIME{"$day $month, $year - $hour:$min:$sec"}%=
    27    * __%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.
    28    * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREVINFO2][REVINFO]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME][SERVERTIME]]
    29