<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Format_date_time</id>
	<title>Format date time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Format_date_time"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Format_date_time&amp;action=history"/>
	<updated>2026-04-24T21:20:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Format_date_time&amp;diff=7869&amp;oldid=prev</id>
		<title>Fluxxdog: Update broken link</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Format_date_time&amp;diff=7869&amp;oldid=prev"/>
		<updated>2014-10-20T14:13:24Z</updated>

		<summary type="html">&lt;p&gt;Update broken link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:13, 20 October 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function_description=Full information on [http://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;download&lt;/del&gt;.oracle.com/javase/1.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;/docs/api/java/text/SimpleDateFormat.html SimpleDateFormat] here.|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function_description=Full information on [http://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;docs&lt;/ins&gt;.oracle.com/javase/1.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5.0&lt;/ins&gt;/docs/api/java/text/SimpleDateFormat.html SimpleDateFormat] here.|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;code1={{CodeSample|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;code1={{CodeSample|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fluxxdog</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Format_date_time&amp;diff=7868&amp;oldid=prev</id>
		<title>Bale: r10078 &amp; r10081</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Format_date_time&amp;diff=7868&amp;oldid=prev"/>
		<updated>2011-12-06T21:55:09Z</updated>

		<summary type="html">&lt;p&gt;r10078 &amp;amp; r10081&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|format_date_time}}{{&lt;br /&gt;
#vardefine:return_type|string}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
parameter1={{Param|string|inFormat}}|&lt;br /&gt;
parameter2={{Param|string|dtg}}|&lt;br /&gt;
parameter3={{Param|string|outFormat}}|&lt;br /&gt;
p1desc={{pspan|inFormat}} is how the input string is formatted.|&lt;br /&gt;
p2desc={{pspan|dtg}} is the time to reformat.|&lt;br /&gt;
p3desc={{pspan|outFormat}} is how the output string should be formatted.|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Full information on [http://download.oracle.com/javase/1.3/docs/api/java/text/SimpleDateFormat.html SimpleDateFormat] here.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=Examples of using format_date_time().|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
string input;&lt;br /&gt;
string format;&lt;br /&gt;
string informat;&lt;br /&gt;
&lt;br /&gt;
input = today_to_string();&lt;br /&gt;
informat = &amp;quot;yyyyMMdd&amp;quot;;&lt;br /&gt;
format = &amp;quot;yyyy MM dd&amp;quot;;&lt;br /&gt;
print(input+&amp;quot; * &amp;quot;+format_date_time(informat, input, format));&lt;br /&gt;
format = &amp;quot;yyyy MM dd hh:mm:ss&amp;quot;;&lt;br /&gt;
print(input+&amp;quot; * &amp;quot;+format_date_time(informat, input, format));&lt;br /&gt;
input = time_to_string();&lt;br /&gt;
print(input+&amp;quot; * &amp;quot;+format_date_time(informat, input, format));&lt;br /&gt;
informat = &amp;quot;hh:mm:ss z&amp;quot;;&lt;br /&gt;
print(input+&amp;quot; * &amp;quot;+format_date_time(informat, input, format));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;|&lt;br /&gt;
moreinfo=&lt;br /&gt;
This is the output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
20111206 * 2011 12 06&lt;br /&gt;
20111206 * 2011 12 06 12:00:00&lt;br /&gt;
11:43:35 EST * Bad parameter(s) passed to format_date_time&lt;br /&gt;
11:43:35 EST * 1970 01 01 11:43:35&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}|&lt;br /&gt;
}}&lt;br /&gt;
{{SeeAlso|gameday_to_string|gameday_to_int|now_to_string|time_to_string}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Miscellaneous Functions]]&lt;/div&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
</feed>