public class ParserFunctionTime extends ParserFunctionsExtPfn
#time template. This template works only
on the time base of UTC+0 (GMT). For functions depending on the local
time of the client, or a predefined time zone, see #timel.ParserFunctionTimeLocal},
Serialized FormParserFunctionsExtPfn.CtrlStmt, ParserFunctionsExtPfn.IfThenElseStmtParserFunctionBase.ParserFunctionAdapter, ParserFunctionBase.ParserFunctionRef| Constructor and Description |
|---|
ParserFunctionTime()
For un-marshaling only.
|
ParserFunctionTime(WikiConfig wikiConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
format(String format,
Calendar timestamp,
Locale locale)
Interprets the symbols in the
format string and returns the
result with the inserted date/time fields. |
WtNode |
invoke(WtTemplate pfn,
ExpansionFrame frame,
List<? extends WtNode> args) |
invokecompareTo, equals, getArgMode, getId, getWikiConfig, hashCode, isPageSwitch, nf, setWikiConfig, toString, tupublic ParserFunctionTime()
public ParserFunctionTime(WikiConfig wikiConfig)
public WtNode invoke(WtTemplate pfn, ExpansionFrame frame, List<? extends WtNode> args)
invoke in class ParserFunctionsExtPfnprotected static String format(String format, Calendar timestamp, Locale locale)
format string and returns the
result with the inserted date/time fields.format - The string to interpret.timestamp - The date/time used to populate the fields.locale - The locale for i18n.https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##timeCopyright © 2010–2018 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.