Difference: TWikiFuncDotPm (16 vs. 17)

Revision 172014-10-05 - TWikiContributor

Line: 295 to 295
  Note: all plugins have an automatically generated context identifier if they are installed and initialised. For example, if the FirstPlugin is
Changed:
<
<
working, the context ID 'FirstPlugin' will be set.
>
>
working, the context ID 'FirstPluginEnabled' will be set.
  Since: TWiki::Plugins::VERSION 1.1
Line: 928 to 928
 Example:
    # read topic:
Changed:
<
<
my( $topicMeta, $topicText ) = TWiki::Func::readTopic( $web, $topic )
>
>
my( $topicMeta, $topicText ) = TWiki::Func::readTopic( $web, $topic );
  # example to change topic text: $topicText =~ s/APPLE/ORANGE/g; # example to change TWiki form field:
Line: 1428 to 1428
 
  • %URLPARAM{...}% - Parameters to the current CGI query
  • %NOP% No-op
Changed:
<
<
See also: expandVariables
>
>
See also: expandCommonVariables
 

Line: 1913 to 1913
  Format the time in seconds into the desired time string
  • $time - Time in epoc seconds
Changed:
<
<
  • $format - Format type, optional. Default e.g. '2013-12-31 - 19:30'. Can be '$iso' (e.g. '2013-12-31T19:30Z'), '$rcs' (e.g. '2013/12/31 23:59:59', '$http' for HTTP header format (e.g. 'The, 2013-07-23 07:21:56 GMT'), or any string with tokens '$seconds, $minutes, $hours, $day, $wday, $month, $mo, $year, $ye, $tz' for seconds, minutes, hours, day of month, day of week, 3 letter month, 2 digit month, 4 digit year, 2 digit year, timezone string, respectively
>
>
  • $format - Format type, optional. Default e.g. '2014-12-31 - 19:30'. Can be '$iso' (e.g. '2014-12-31T19:30Z'), '$rcs' (e.g. '2014/12/31 23:59:59', '$http' for HTTP header format (e.g. 'The, 2014-07-23 07:21:56 GMT'), or any string with tokens '$seconds, $minutes, $hours, $day, $wday, $month, $mo, $year, $ye, $tz' for seconds, minutes, hours, day of month, day of week, 3 letter month, 2 digit month, 4 digit year, 2 digit year, timezone string, respectively
 
  • $timezone - either not defined (uses the displaytime setting), 'gmtime', or 'servertime'
Return: $text Formatted time string
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiFuncDotPm.