Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a22173c279c8bdc9

Jump to content

Module:Format time/sandbox

From Wikipedia, the free encyclopedia
local p = {}

function p.main(frame)
	args = require('Module:Arguments').getArgs(frame)
	return p._main{fmt = args['fmt'], s = args['s'] or args[1]}
end

function p._main(args)
	-- args is a table with two values:
	-- fmt = the format to output the time, according to [[:mw:Help:Extension:ParserFunctions##time]] (default: j xg Y)
	-- s (or [1]) = the string to process; should be a date (default: empty string)
	return mw.getContentLanguage():formatDate(args.fmt or 'j xg Y', require('Module:YMD to ISO')._main(args.s or args[1]), false)
end

return p