<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AUSERAPI_SecondsToDays</id>
	<title>WoW:USERAPI SecondsToDays - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AUSERAPI_SecondsToDays"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SecondsToDays&amp;action=history"/>
	<updated>2026-05-22T18:59:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SecondsToDays&amp;diff=19913&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page USERAPI SecondsToDays to WoW:USERAPI SecondsToDays without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SecondsToDays&amp;diff=19913&amp;oldid=prev"/>
		<updated>2023-08-15T04:49:14Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:USERAPI_SecondsToDays&quot; title=&quot;WoW:USERAPI SecondsToDays&quot;&gt;USERAPI SecondsToDays&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:USERAPI_SecondsToDays&quot; title=&quot;WoW:USERAPI SecondsToDays&quot;&gt;USERAPI SecondsToDays&lt;/a&gt; without leaving a redirect&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 04:49, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-19912:rev-19913 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SecondsToDays&amp;diff=19912&amp;oldid=prev</id>
		<title>WoWWiki&gt;Kyoji001: Initial Create</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SecondsToDays&amp;diff=19912&amp;oldid=prev"/>
		<updated>2010-05-12T06:03:13Z</updated>

		<summary type="html">&lt;p&gt;Initial Create&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{userfunc}} &amp;lt;!-- Leave this line in! --&amp;gt;&lt;br /&gt;
Fast function for converting the TIME_PLAYED_MSG response (or any source of seconds) to a X days/X hours/X minutes/X seconds format.&lt;br /&gt;
&lt;br /&gt;
 secondsToDays(inputSeconds)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Function Parameters ==&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
:inputSeconds&lt;br /&gt;
&lt;br /&gt;
:;inputSeconds : Number&lt;br /&gt;
=== Returns ===&lt;br /&gt;
&amp;lt;!-- List each return value, together with its type --&amp;gt;&lt;br /&gt;
:&amp;quot;X days/X hours/X minutes/X seconds&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:;X days/X hours/X minutes/X seconds : String&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Details==&lt;br /&gt;
&amp;lt;!-- Details not appropriate for the main description can go here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Works with any amount of seconds&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;!-- Paste your function(s) here. Make sure to prefix each line with at least one space. You may want to replace some troublesome characters with HTML entities when necessary, e.g. &amp;quot;&amp;lt;&amp;quot; becomes &amp;amp;lt;, etc.. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;max-width: 80em; margin-right: 2em; height: 20em; overflow: scroll;&amp;quot;&amp;gt;&lt;br /&gt;
 function secondsToDays(inputSeconds)&lt;br /&gt;
  fdays = math.floor(inputSeconds/86400)&lt;br /&gt;
  fhours = math.floor((bit.mod(inputSeconds,86400))/3600)&lt;br /&gt;
  fminutes = math.floor(bit.mod((bit.mod(inputSeconds,86400)),3600)/60)&lt;br /&gt;
  fseconds = math.floor(bit.mod(bit.mod((bit.mod(inputSeconds,86400)),3600),60))&lt;br /&gt;
  return fdays..&amp;quot; days/&amp;quot;..fhours..&amp;quot; hours/&amp;quot;..fminutes..&amp;quot; minutes/&amp;quot;..fseconds..&amp;quot; seconds&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
[[Category:User defined functions]]&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Kyoji001</name></author>
	</entry>
</feed>