LocalCityTimePlugin
This plugin shows the local time of a city embedded in a topic.
Requires BSD or Linux zoneinfo files and date command
Usage
Add the
%LOCALCITYTIME{"timezone"}%
macro anywhere in your topic.
"timezone"
is a Continent/City combination.
Examples:
What: |
You type: |
You get: (static text for demo) |
Time in Zurich: |
%LOCALCITYTIME{"Europe/Zurich"}% |
Sun, 15 Jul 2001, 02:03:50 CEST (Europe/Zurich) |
Incorrect timezone: |
%LOCALCITYTIME{"Not/There"}% |
LocalCityTimePlugin warning: Invalid Timezone. Use a Continent/City timezone code e.g. %LOCALCITYTIME{"Europe/Zurich"}% |
Help: |
%LOCALCITYTIME% |
%LOCALCITYTIME% |
Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
If the installation worked, you should see expanded times below:
Europe/London |
%LOCALCITYTIME{"Europe/London"}% |
America/Havana |
%LOCALCITYTIME{"America/Havana"}% |
Asia/Tokyo |
%LOCALCITYTIME{"Asia/Tokyo"}% |
Asia/Tel_Aviv |
%LOCALCITYTIME{"Asia/Tel_Aviv"}% |
Info