SecondsToString (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (minor cleanup)
 
(4 intermediate revisions by 3 users not shown)
Line 5: Line 5:
==Syntax==
==Syntax==
{{Template:Float:SecondsToString syntax}}
{{Template:Float:SecondsToString syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%string</th><td>A variable to receive the formatted [[Datetime_string_formats|date/time string]] result of the <var>SecondsToString</var> method.</td></tr>
<tr><th>%string</th><td>A variable to receive the formatted [[Datetime_string_formats|date/time string]] result of the <var>SecondsToString</var> method.</td></tr>
<tr><th>float</th><td>A <var>Float</var> value representing seconds since 1900.</td></tr>
 
<tr><th>float</th><td>A <var>Float</var> value representing seconds since 1900. It must be in the range -4638816000 to 255611289599.</td></tr>
 
<tr><th>format</th><td>A valid [[Datetime_string_formats|date/time string format]].</td></tr>
<tr><th>format</th><td>A valid [[Datetime_string_formats|date/time string format]].</td></tr>
</table>
</table>


==Examples==
==Examples==
See the <var>StringToSeconds</var> [[StringToSeconds (String function)#Examples|example]].
==See also==
<ul>
<li>Related intrinsic methods (provide conversion from one form of date representation to another):
<ul>
<li><var>[[DaysToString (Float_function)|DaysToString]]</var> </li>


<li><var>[[MillisecondsToString (Float_function)|MillisecondsToString ]]</var> </li>


==See also==
<li><var>[[StringToDays (String_function)|StringToDays]]</var> </li>
 
<li><var>[[StringToMilliseconds (String_function)|StringToMilliseconds]]</var> </li>
 
<li><var>[[StringToSeconds (String_function)|StringToSeconds]]</var> </li>
 
<li><var>[[TimeStringConvert (String_function)|TimeStringConvert]]</var> </li>
</ul> </li>
 
<li>Related <var>System</var> methods:
<ul>
<ul>
<li><var>[[DaysToString (Float_function)|DaysToString]]</var>
<li><var>[[CurrentTimeMilliseconds (System function)|CurrentTimeMilliseconds]]</var> </li>
<li><var>[[MillisecondsToString (Float_function)|MillisecondsToString ]]</var>
 
<li><var>[[StringToDays (String_function)|StringToDays]]</var>
<li><var>[[CurrentTimeSeconds (System function)|CurrentTimeSeconds]]</var> </li>
<li><var>[[StringToMilliseconds (String_function)|StringToMilliseconds]]</var>
 
<li><var>[[StringToSeconds (String_function)|StringToSeconds]]</var>
<li><var>[[CurrentTimeDays (System function)|CurrentTimeDays]]</var> </li>
<li><var>[[TimeStringConvert (String_function)|TimeStringConvert]]</var>
 
<li><var>[[CurrentTimeString (System function)|CurrentTimeString]]</var> </li>
</ul> </li>
</ul>
</ul>


{{Template:Float:SecondsToString footer}}
{{Template:Float:SecondsToString footer}}

Latest revision as of 16:37, 4 January 2016

Convert seconds since 1900 to string date/time (Float class)

[Introduced in Sirius Mods 7.8]


The SecondsToString intrinsic function operates on a Float value representing seconds since 1900 and returns a formatted string representing that date/time.

Syntax

%string = float:SecondsToString( format)

Syntax terms

%stringA variable to receive the formatted date/time string result of the SecondsToString method.
floatA Float value representing seconds since 1900. It must be in the range -4638816000 to 255611289599.
formatA valid date/time string format.

Examples

See the StringToSeconds example.

See also