<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnsigned</id>
	<title>Module:Unsigned - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnsigned"/>
	<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=Module:Unsigned&amp;action=history"/>
	<updated>2026-05-08T11:04:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://chabadpedia.com/index.php?title=Module:Unsigned&amp;diff=7990&amp;oldid=prev</id>
		<title>Shia.k: Created page with &quot;local p = {}  -- There&#039;s probably a way to use strptime or some other more sophisticated way, but you&#039;re not supposed to be using a non-timestamp as input anyway.  local function endswith(String,End) 	return End == &#039;&#039; or string.sub(String,-string.len(End)) == End end  local function trim(s) 	return s:gsub(&quot;^%s+&quot;, &quot;&quot;):gsub(&quot;%s+$&quot;, &quot;&quot;):gsub(&quot;\226\128\142&quot;, &quot;&quot;) end  local function addUtcToStringIfItDoesNotEndWithUtc(s) 	if s == &quot;&quot; or endswith(s, &quot;~~~~&quot;) then return s end 	i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=Module:Unsigned&amp;diff=7990&amp;oldid=prev"/>
		<updated>2025-04-16T13:25:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  -- There&amp;#039;s probably a way to use strptime or some other more sophisticated way, but you&amp;#039;re not supposed to be using a non-timestamp as input anyway.  local function endswith(String,End) 	return End == &amp;#039;&amp;#039; or string.sub(String,-string.len(End)) == End end  local function trim(s) 	return s:gsub(&amp;quot;^%s+&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;%s+$&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;\226\128\142&amp;quot;, &amp;quot;&amp;quot;) end  local function addUtcToStringIfItDoesNotEndWithUtc(s) 	if s == &amp;quot;&amp;quot; or endswith(s, &amp;quot;~~~~&amp;quot;) then return s end 	i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- There&amp;#039;s probably a way to use strptime or some other more sophisticated way, but you&amp;#039;re not supposed to be using a non-timestamp as input anyway.&lt;br /&gt;
&lt;br /&gt;
local function endswith(String,End)&lt;br /&gt;
	return End == &amp;#039;&amp;#039; or string.sub(String,-string.len(End)) == End&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function trim(s)&lt;br /&gt;
	return s:gsub(&amp;quot;^%s+&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;%s+$&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;\226\128\142&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function addUtcToStringIfItDoesNotEndWithUtc(s)&lt;br /&gt;
	if s == &amp;quot;&amp;quot; or endswith(s, &amp;quot;~~~~&amp;quot;) then return s end&lt;br /&gt;
	if not endswith(s, &amp;quot;(UTC)&amp;quot;) then&lt;br /&gt;
		return s .. &amp;quot; (UTC)&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function _main(args)&lt;br /&gt;
	local hopefullyTimestamp = args[1] or os.date(&amp;#039;%H:%M, %d %B %Y (%Z)&amp;#039;)&lt;br /&gt;
	return addUtcToStringIfItDoesNotEndWithUtc(trim(hopefullyTimestamp))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args&lt;br /&gt;
	if type(frame.args) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		-- We&amp;#039;re being called via #invoke. The args are passed through to the module&lt;br /&gt;
		-- from the template page, so use the args that were passed into the template.&lt;br /&gt;
		args = frame.args&lt;br /&gt;
	else&lt;br /&gt;
		-- We&amp;#039;re being called from another module or from the debug console, so assume&lt;br /&gt;
		-- the args are passed in directly.&lt;br /&gt;
		args = frame&lt;br /&gt;
	end&lt;br /&gt;
	return _main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Shia.k</name></author>
	</entry>
</feed>