 
	
		 
	
    
	
		 
	
	
		 
	
	
		 
	
	
		 
	
        
                 
	 
		%LOCALTIME% macro is provided by the LocalTimePlugin
%LOCALTIME% or %LOCALTIME{…}%
%LOCALTIME% expands to the current date and time using the default     format, time zone, and locale
%LOCALTIME{…}% expands to a date and time allowing the      default behavior to be overridden according to any parameters supplied
| Parameter: | Description: | Default | 
|---|---|---|
| "timezone" | The name of the desired time zone such as "Asia/Tokyo"or"CST6CDT"or"UTC" | "UTC" | 
| datetime="…" | The date and time to display. This parameter is assumed to be in UTC unless it contains a time zone specifier. 
 Notes: 
 | Current time | 
| format="…" | The format specifier string defining how to display the date and/or time | "$longdate" | 
| locale="…" | The locale to use when displaying the date/time | "en_US" | 
| Parameter: | Description: | Deprecated | 
|---|---|---|
| dateGMT="…" | The same as datetime, usedatetimeinstead | Since 1.1 | 
| fromtopic="…" | The web.topicfrom which to get the value of theTIMEZONEvariable, use the preference settingLOCALTIMEPLUGIN_TIMEZONEinstead | Since 1.1 | 
| Token: | Unit: | Example | 
|---|---|---|
| $seconds | seconds | 59 | 
| $minutes | minutes | 59 | 
| $hours | hours | 23 | 
| $day | day of month | 31 | 
| $wday | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu | 
| $dow | day of the week (Sun = 0) | 2 | 
| $week | number of week in year (ISO 8601) | 34 | 
| $month | short name of month | Dec | 
| $mo | 2 digit month | 12 | 
| $year | 4 digit year | 1999 | 
| $ye | 2 digit year | 99 | 
| $tziso | time zone as offset from UTC ±HHMM | -0500 | 
| $tz | time zone identifier | UTC | 
| $epoch | seconds since 1970-01-01T00:00:00Z | 1057159140 | 
| $iso | ISO format timestamp | 1999-12-31T23:59:59-0500 | 
| $rcs | RCS format timestamp | 1999/12/31 23:59:59 | 
| $http | RFC 2616 timestamp, same as $email | Fri, 31 Dec 1999 23:59:59 EST | 
| $email | RFC 822/1123 timestamp, same as $http | Fri, 31 Dec 1999 23:59:59 EST | 
| $rfc | RFC 2822/5322 timestamp | Fri, 31 Dec 1999 23:59:59 -0500 | 
| $longdate | Site default date format followed by " - HH:MM" | 31 Dec 1999 - 23:59 | 
$sec for $seconds)
$second, $minute, and $hour are also accepted
format also accepts strftime format specifiers.  However, since the         percent sign is significant to Foswiki, the $percnt token must be used        instead of an actual percent sign.  For example: the default locale         timestamp specifier %c would be specified as $percntc in the         format string. Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.