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¶m1=Main.TestTest¶m2=60¶m3=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
03 Jan, 2026 - 20:48:08
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