DaysToString (Float function): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (→See also) |
||
Line 31: | Line 31: | ||
==See also== | ==See also== | ||
<ul> | |||
<li>Related intrinsic methods: | |||
<ul> | <ul> | ||
<li><var>[[MillisecondsToString (Float_function)|MillisecondsToString ]]</var> | <li><var>[[MillisecondsToString (Float_function)|MillisecondsToString ]]</var> | ||
Line 39: | Line 41: | ||
<li><var>[[TimeStringConvert (String_function)|TimeStringConvert]]</var> | <li><var>[[TimeStringConvert (String_function)|TimeStringConvert]]</var> | ||
</ul> | </ul> | ||
<li>Related <var>System</var> methods: | |||
<ul> | |||
<li><var>[[CurrentTimeMilliseconds (System function)|CurrentTimeMilliseconds]]</var> | |||
<li><var>[[CurrentTimeSeconds (System function)|CurrentTimeSeconds]]</var> | |||
<li><var>[[CurrentTimeDays (System function)|CurrentTimeDays ]]</var> | |||
<li><var>[[CurrentTimeString (System function)|CurrentTimeString ]]</var> | |||
</ul> | |||
</ul> | |||
{{Template:Float:DaysToString footer}} | {{Template:Float:DaysToString footer}} |
Revision as of 21:02, 10 July 2012
Convert days since 1900 to string date/time (Float class)
[Introduced in Sirius Mods 7.8]
The DaysToString intrinsic function operates on a Float value representing days since 1900 and returns a formatted string representing that date/time.
Syntax
%string = float:DaysToString( format)
Syntax terms
%string | A variable to receive the formatted date/time string result of the DaysToString method. |
---|---|
float | A Float value representing days since 1900. |
format | A valid date/time string format. |
Usage notes
- The DaysToString function is available as of Sirius Mods Version 7.8
Examples
- These statements use DaysToString and StringToDays to convert a value in
MM/DD/YY
format to theMonth DAY, YYYY
format. They also show the effect of the CentSpan parameter:printText {~='12/22/11':stringToDays('MM/DD/YY', centspan=2000):daysToString('Month DAY, YYYY')} printText {~='12/22/11':stringToDays('MM/DD/YY', centspan=1910):daysToString('Month DAY, YYYY')}
The results are:
'12/22/11':stringToDays('MM/DD/YY', centspan=2000):daysToString('Month DAY, YYYY')=December 22, 2011 '12/22/11':stringToDays('MM/DD/YY', centspan=1910):daysToString('Month DAY, YYYY')=December 22, 1911
- See also the StringToDays examples.
See also
- Related intrinsic methods:
- Related System methods: