Time$: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Description|description=This command outputs the current time of day. The output string's format is based on the UI culture (i.e. the language used during installation). As a result, for US English installs, the command will always return an AM/PM string such as: "3:54 PM".}} | {{Description|description=This command outputs the current time of day. The output string's format is based on the UI culture (i.e. the language used during installation). As a result, for US English installs, the command will always return an AM/PM string such as: "3:54 PM".}} | ||
{{Stats|id=2|type=String|class=All Machines|scope=|version=N/A}} | {{Stats|id=2|type=String|class=All Machines|scope=|version=N/A}} | ||
===Notes=== | |||
When posting in silent mode, or when the post is run from a script, this command outputs nothing at all and the requested Time Format is ignored. [[Time$]] and [[Date$]] behave the same way. Posts should therefore not assume that a time will always be present in the output, and should not rely on its presence for line numbering, block counts or fixed-width formatting. | When posting in silent mode, or when the post is run from a script, this command outputs nothing at all and the requested Time Format is ignored. [[Time$]] and [[Date$]] behave the same way. Posts should therefore not assume that a time will always be present in the output, and should not rely on its presence for line numbering, block counts or fixed-width formatting. | ||
==See Also== | |||
[[CurrentTime$]], [[Date$]], [[TimeComment]] | |||
[[Category:Comments]] | [[Category:Comments]] | ||
Revision as of 02:39, 18 September 2026
Description
This command outputs the current time of day. The output string's format is based on the UI culture (i.e. the language used during installation). As a result, for US English installs, the command will always return an AM/PM string such as: "3:54 PM".
Stats
ID 2 Type String Class All Machines Min Version N/A
Notes
When posting in silent mode, or when the post is run from a script, this command outputs nothing at all and the requested Time Format is ignored. Time$ and Date$ behave the same way. Posts should therefore not assume that a time will always be present in the output, and should not rely on its presence for line numbering, block counts or fixed-width formatting.