Redirecting to www.superwaba.com.br ...
 Home The REAL Power of Mobile Computing Sourceforge 
Superwaba home Superwaba > TWiki > LocalCityTimePlugin Superwaba webs:
Main | Codev | TWiki | Know | Sandbox
TWiki . { Welcome | Register | Changes | Topics | Index | Search | Go }

LocalCityTimePlugin

This plugin shows the local time of a city embedded in a Superwaba topic. The current time is taken from the from http://www.bsdi.com/date web site.

Syntax Rules

Add the %LOCALCITYTIME{"timezone"}% variable anywhere in your topic. "timezone" is a Continent/City combination as defined in above mentioned web site.

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 listed in http://www.bsdi.com/date, i.e. %LOCALCITYTIME{"Europe/Zurich"}%
Help: %LOCALCITYTIME% LocalCityTimePlugin help: Write a Continent/City timezone code listed in http://www.bsdi.com/date, i.e. %LOCALCITYTIME{"Europe/Zurich"}%

LocalCityTimePlugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %LOCALCITYTIMEPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Shows the local time of a city embedded in a Superwaba topic.

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip LocalCityTimePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/LocalCityTimePlugin.txt Plugin topic
    data/TWiki/LocalCityTimePlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/LocalCityTimePlugin.pm Plugin Perl module
  • Create a topic with text %LOCALCITYTIME{"Europe/Zurich"}% to check if the installation was successful.

Plugin Info

Plugin Author: PeterThoeny
Plugin Version: 14 Jul 2001
Change History: 14 Jul 2001: Changed to plug & play
26 Apr 2001: initPlugin returns 1; fixed uninitialized value warning
25 Apr 2001: Initial version
CPAN Dependencies: none
Other Dependencies: Format of http://www.bsdi.com/date web page
Perl Version: 5.0
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/LocalCityTimePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/LocalCityTimePluginDev

Related Topics: TWikiPreferences, TWikiPlugins, TextFormattingRules

-- PeterThoeny - 14 Jul 2001

Topic LocalCityTimePlugin . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 15 Jul 2001 - 00:16 GMT - PeterThoeny? Copyright© 2002-2004 Superwaba.
The Palm OS and Windows CE logos are registered trademarks of their copyright owners.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Superwaba ? Send feedback.