CurrentTimeString (System function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (Remove empty section headers)
Line 11: Line 11:
<td><var></var>A [[Datetime string formats|datetime format]] string. This argument is optional; the default is <code>YY-MM-DD</code>.</td></tr>
<td><var></var>A [[Datetime string formats|datetime format]] string. This argument is optional; the default is <code>YY-MM-DD</code>.</td></tr>
</table>
</table>
==Usage notes==
==Examples==


==See also==
==See also==
<ul><li>The <var class="term">format</var> argument is optional; otherwise <var>CurrentTimeString</var> is the same as <var>[[$Sir_Date]]</var>.</ul>
<ul><li>The <var class="term">format</var> argument is optional; otherwise <var>CurrentTimeString</var> is the same as <var>[[$Sir_Date]]</var>.</ul>
{{Template:System:CurrentTimeString footer}}
{{Template:System:CurrentTimeString footer}}

Revision as of 09:39, 30 March 2011

Current time as a string (System class)

[Introduced in Sirius Mods 7.8]


Syntax

%string = %(System):CurrentTimeString[( [format])] Throws InvalidDateString

Syntax terms

%stringThe returned value is the current time; it is a string in the format specified by the format argument.
%(System) The class name in parentheses denotes a shared method. CurrentTimeString can also be invoked via a System object variable, which may be null.
format A datetime format string. This argument is optional; the default is YY-MM-DD.

See also

  • The format argument is optional; otherwise CurrentTimeString is the same as $Sir_Date.