Tags:
create new tag
, view all tags
It would be really handy if there were a display of the TWiki's idea of current time somewhere in the "topic locked" template. I haven't seen anything like a %GMTIME% variable (which doesn't mean that it's not already there) but it couldn't be too difficult to add (and then to add to the template.) I always screw up the conversion back to zulu; I don't bump into other people's edits often enough to just remember what it is :-) -- KevinKinnell - 26 May 2000


OK, I added %GMTIME% to alpha, is now in the cvs repository.

Somewhat related, I changed the lock warning page to show the remaining lock time in minutes. Here is a fake lock warning that shows that:

http://TWiki.SourceForge.net/cgi-bin/oops/Codev/GMTimeVariable?template=oopslocked&param1=Main.TestTest&param2=60&param3=14

-- PeterThoeny - 29 May 2000

The format of %GMTIME{"format"}% and %SERVERTIME{"format"}% has changed because it was not very flexible. The new {"format"} is:

Variable: Unit: Example
$seconds seconds 59
$minutes minutes 59
$hours hours 23
$day day of month 31
$month month in ISO format Dec
$mo 2 digit month 12
$year 4 digit year 1999
$ye 2 digit year 99

Variables can be shortened to 3 characters. Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}% is
10 Feb, 2012 - 02:46:30

So, for example, {"hour:min"} changed {"$hour:$min"}. Please change your topics that use %GMTIME{"format"}% or %SERVERTIME{"format"}% when you upgrade TWiki.

See also TWikiVariables.

Commited to TWikiAlphaRelease, and made a TWikiBetaRelease.

-- PeterThoeny - 20 Jan 2001

TopicClassification:
FeatureDone
Topic revision: r4 - 2005-06-09 - WillNorris
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.