Changeset 1287
- Timestamp:
- 12/12/08 06:05:09 (3 years ago)
- Location:
- trunk/core
- Files:
-
- 1 deleted
- 2 edited
-
data/System/VarGMTIME.txt (modified) (1 diff)
-
data/System/VarGMTIME2.txt (deleted)
-
lib/Foswiki/Contrib/core/MANIFEST (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/System/VarGMTIME.txt
r688 r1287 2 2 %META:TOPICPARENT{name="Macros"}% 3 3 #VarGMTIME 4 ---+++ GMTIME -- GM time 5 * Syntax: =%<nop>GMTIME%= 6 * Expands to: =%GMTIME%= 7 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 4 ---+++ GMTIME{"format"} -- formatted GM time 5 * Syntax: =%<nop>GMTIME%= OR =%<nop>GMTIME{"format"}%= 6 * =%<nop>GMTIME%= uses the default date format defined by the {DefaultDateFormat} setting in [[%SCRIPTURLPATH{"configure"}%][configure]] 7 * expands to %GMTIME% 8 * Supported special format tokens: 9 | *Token:* | *Unit:* | *Example* | 10 | =$seconds= | seconds | 59 | 11 | =$minutes= | minutes | 59 | 12 | =$hours= | hours | 23 | 13 | =$day= | day of month | 31 | 14 | =$wday= | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu | 15 | =$dow= | day of the week (Sun = 0) | 2 | 16 | =$week= | number of week in year (ISO 8601) | 34 | 17 | =$month= | short name of month | Dec | 18 | =$mo= | 2 digit month | 12 | 19 | =$year= | 4 digit year | 1999 | 20 | =$ye= | 2 digit year | 99 | 21 | =$tz= | either "GMT" (if set to gmtime), or "Local" (if set to servertime) | GMT | 22 | =$iso= | ISO format timestamp | %GMTIME{"$iso"}% | 23 | =$rcs= | RCS format timestamp | %GMTIME{"$rcs"}% | 24 | =$http= | E-mail & http format timestamp | %GMTIME{"$http"}% | 25 | =$epoch= | Number of seconds since 00:00 on 1st January, 1970 | %GMTIME{"$epoch"}% | 26 * Tokens can be shortened to 3 characters 27 * Example: =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= expands to =%GMTIME{"$day $month, $year - $hour:$min:$sec"}%= 8 28 * __%X% Note:__ 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. 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME2][GMTIME{"format"}]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSERVERTIME][SERVERTIME]] 10 29 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarREVINFO][REVINFO]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSERVERTIME][SERVERTIME]] -
trunk/core/lib/Foswiki/Contrib/core/MANIFEST
r1285 r1287 190 190 data/System/VarDATE.txt 0644 191 191 data/System/VarDISPLAYTIME.txt 0644 192 data/System/VarDISPLAYTIME2.txt 0644193 192 data/System/VarEDITACTION.txt 0644 194 193 data/System/VarENCODE.txt 0644 … … 199 198 data/System/VarFORMFIELD.txt 0644 200 199 data/System/VarGMTIME.txt 0644 201 data/System/VarGMTIME2.txt 0644202 200 data/System/VarGRAY.txt 0644 203 201 data/System/VarGREEN.txt 0644
Note: See TracChangeset
for help on using the changeset viewer.
