Time$: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
JefD (talk | contribs)
New page: '''Time$''' The current time of day. ::{| style="background-color:#dddddd;" cellpadding="10" cellspacing="0" border="1" |'''ID''' || 2 |- | '''Date added''' || N/A |- |'''Type''' || Stri...
 
FabienT (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Time$'''
{{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}}
The current time of day.
===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.
::{| style="background-color:#dddddd;" cellpadding="10" cellspacing="0" border="1"
==See Also==
|'''ID''' || 2
[[CurrentTime$]], [[Date$]], [[TimeComment?]]
|-
[[Category:Comments]]
| '''Date added''' || N/A
|-
|'''Type''' || String
|-
| '''Class/Scope''' || All
|-
|'''Min Version''' || N/A  
|-
| '''Notes''' ||
|}
 
[[Category:Comments]] [[Category:Header Comments]] [[Category:String]] [[Category:All Machines]]

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?