<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFormat_time%2Fdoc</id>
	<title>Module:Format time/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFormat_time%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Format_time/doc&amp;action=history"/>
	<updated>2026-04-23T01:35:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Format_time/doc&amp;diff=23483495&amp;oldid=prev</id>
		<title>imported&gt;HouseBlaster: add</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Format_time/doc&amp;diff=23483495&amp;oldid=prev"/>
		<updated>2025-07-26T23:03:05Z</updated>

		<summary type="html">&lt;p&gt;add&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|protected}}&lt;br /&gt;
{{Lua|Module:Arguments|Module:YMD to ISO}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
This module is a fancy way to call {{pf|time}} in Lua. Unlike &amp;lt;code&amp;gt;#time&amp;lt;/code&amp;gt;, it handles YMD dates (e.g. 2020 January 1) correctly via [[Module:YMD to ISO]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
From a template:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{#invoke:Format date|main|&amp;lt;timestamp&amp;gt;|fmt=&amp;lt;Formatting string&amp;gt;}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From a module:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;require(&amp;#039;Module:Format time&amp;#039;)._main{&amp;lt;timestamp&amp;gt;, fmt = &amp;lt;Formatting string&amp;gt;}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In both cases, &amp;lt;timestamp&amp;gt; is any timestamp considered valid by {{pf|time}} plus YMD format. {{para|fmt}} can be any format according to [[:mw:Help:Extension:ParserFunctions##time]], and defaults to &amp;lt;code&amp;gt;j xg Y&amp;lt;/code&amp;gt;, which renders dates like {{samp|28 June 2025}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Time, date and calendar modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;HouseBlaster</name></author>
	</entry>
</feed>