$Time: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (more conversion cleanup)
($TIME(2,' ',' ') did not format correctly - only spaces work, but we really want nulls)
Line 71: Line 71:
</tr>
</tr>


<tr><td>$Time(2,'','') </td>
<tr><td>$Time(2,' ',' ')<--(nulls, not blanks)</td>
<td>HHMMSSTTT</td></tr>
<td>HHMMSSTTT</td></tr>
</table>
</table>


[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Revision as of 21:46, 21 April 2017

Returns the current time of day in the format specified.

Syntax

$Time(time-format,'first-delimiter', 'second-delimiter')

Where:

Argument Value Specifies Default value
time-format 1 Returns the time of day as hhdmmdss (d is the delimiter) 1
  2 Returns the time of day as hhdmmdssdttt (d is the delimiter)  
first-delimiter 1 character only Character to place between time units HH, MM, and SS : (colon)
second-delimiter 1 character only, second-delimiter Character to place between time units SS and TTT . (period)

The second-delimiter applies only if time-format is 2. You must enclose the delimiters with single quotation marks.

You can suppress either the first-delimiter or second-delimiter character by using a single quoted null string.

Examples

$Time(argument) Returns...
$Time HH:MM:SS
$Time(1) HH:MM:SS
$Time(1,'-') HH-MM-SS
$Time(1,' ') HH MM SS
$Time(1,) HHMMSS
$Time(2) HH:MM:SS.TTT
$Time(2,'-') HH-MM-SS.TTT
$Time(2,' ',' ')<--(nulls, not blanks) HHMMSSTTT