Time$: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
FabienT (talk | contribs)
No edit summary
FabienT (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
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}}
===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]]

Latest revision as of 02:48, 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.

See Also

CurrentTime$, Date$, TimeComment?