CurrentTimeString (System function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
mNo edit summary |
||
Line 7: | Line 7: | ||
<tr><th>%string</th><td>The returned value is the current time; it is a string in the format specified by the <var class="term">format</var> argument.</td></tr> | <tr><th>%string</th><td>The returned value is the current time; it is a string in the format specified by the <var class="term">format</var> argument.</td></tr> | ||
<tr><th>%(System)</th> | <tr><th>%(System)</th> | ||
<td>The class name in parentheses denotes a shared method. <var>CurrentTimeString</var> can also be invoked via a <var> | <td>The class name in parentheses denotes a shared method. <var>CurrentTimeString</var> can also be invoked via a <var>System</var> object variable, which may be null.</td></tr> | ||
<tr><th>format</th> | <tr><th>format</th> | ||
<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> |
Revision as of 16:08, 29 March 2011
Current time as a string (System class)
[Introduced in Sirius Mods 7.8]
Syntax
%string = %(System):CurrentTimeString[( [format])] Throws InvalidDateString
Syntax terms
%string | The 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 . |
Usage notes
Examples
See also
- The format argument is optional; otherwise CurrentTimeString is the same as $Sir_Date.