https://wiki.hoggitworld.com/index.php?title=MIST_getDHMS&feed=atom&action=history
MIST getDHMS - Revision history
2024-03-28T12:46:05Z
Revision history for this page on the wiki
MediaWiki 1.30.0
https://wiki.hoggitworld.com/index.php?title=MIST_getDHMS&diff=8485&oldid=prev
Acidictadpole at 15:52, 4 January 2019
2019-01-04T15:52:56Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr style="vertical-align: top;" lang="en">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Revision as of 15:52, 4 January 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5" >Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|vNum = Mist 3.7</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|vNum = Mist 3.7</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; 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;"><div>|desc= Returns a table formatted as {d = day, h = hours, m = minutes, s = seconds} of a given time in seconds. If no value is passed the function returns <del class="diffchange diffchange-inline">the current time of the mission</del>.  </div></td><td class='diff-marker'>+</td><td style="color:black; 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;"><div>|desc= Returns a table formatted as {d = day, h = hours, m = minutes, s = seconds} of a given time in seconds. If no value is passed the function <ins class="diffchange diffchange-inline">logs an error and </ins>returns <ins class="diffchange diffchange-inline">nil</ins>.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|rtnType= table</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|rtnType= table</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l57" >Line 57:</td>
<td colspan="2" class="diff-lineno">Line 57:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><code></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><code></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; 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;"><div>   local date = mist.time.getDHMS()</div></td><td class='diff-marker'>+</td><td style="color:black; 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;"><div>   local date = mist.time.getDHMS(<ins class="diffchange diffchange-inline">timer.getAbsTime()</ins>)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>   if date.h >= 21 or date.h =< 5 then</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>   if date.h >= 21 or date.h =< 5 then</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>     lightBombs = true</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>     lightBombs = true</div></td></tr>
</table>
Acidictadpole
https://wiki.hoggitworld.com/index.php?title=MIST_getDHMS&diff=831&oldid=prev
Grimes: Created page with "{{Mission Scripting |fName= mist.time.getDHMS |vNum = Mist 3.7 |desc= Returns a table formatted as {d = day, h = hours, m = minutes, s = seconds} of a given time in seconds..."
2018-04-13T08:03:41Z
<p>Created page with "{{Mission Scripting |fName= mist.time.getDHMS |vNum = Mist 3.7 |desc= Returns a table formatted as {d = day, h = hours, m = minutes, s = seconds} of a given time in seconds..."</p>
<p><b>New page</b></p><div>{{Mission Scripting<br />
<br />
|fName= mist.time.getDHMS<br />
<br />
|vNum = Mist 3.7<br />
<br />
|desc= Returns a table formatted as {d = day, h = hours, m = minutes, s = seconds} of a given time in seconds. If no value is passed the function returns the current time of the mission. <br />
<br />
|rtnType= table<br />
<br />
|reqType1= <br />
<br />
|reqName1= <br />
<br />
|reqType2= <br />
<br />
|reqName2= <br />
<br />
|reqType3= <br />
<br />
|reqName3= <br />
<br />
|reqType4= <br />
<br />
|reqName4= <br />
<br />
|reqType5= <br />
<br />
|reqName5= <br />
<br />
|optType1= number<br />
<br />
|optName1= time<br />
<br />
|optType2= <br />
<br />
|optName2= <br />
<br />
|optType3= <br />
<br />
|optName3= <br />
<br />
|optType4= <br />
<br />
|optName4= <br />
<br />
|optType5= <br />
<br />
|optName5= <br />
<br />
|varExamples= 93600<br />
<br />
|rtnExamples= {d = 2, h = 2, m = 0, s = 0}<br />
<br />
<br />
|example= The following example would be an approximate function to determine the use of illumination flares or bombs. <br />
<br />
<code><br />
local date = mist.time.getDHMS()<br />
if date.h >= 21 or date.h =< 5 then<br />
lightBombs = true<br />
end<br />
</code><br />
<br />
<br />
|notes= <br />
<br />
|funcs= {{listOfMistTimeFuncs}}<br />
<br />
}}<br />
[[Category:MIST|getDHMS]]</div>
Grimes