Show current time: Difference between revisions

Jump to navigation Jump to search
m
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
 
Line 16: Line 16:




Result of {{kbd | key= <nowiki>prompt $d $t $_$P$G</nowiki>}} ({{Win}}<ref>[http://stackoverflow.com/questions/673523/how-to-measure-execution-time-of-command-in-windows-command-line batch file - How to measure execution time of command in windows command line? - Stack Overflow]</ref>). By OS:
Result of {{kbd | key= <nowiki>prompt $d $t $_$P$G</nowiki>}} on {{Win}}<ref>[http://stackoverflow.com/questions/673523/how-to-measure-execution-time-of-command-in-windows-command-line batch file - How to measure execution time of command in windows command line? - Stack Overflow]</ref>). By OS:


* Windows 10 in Mandarin: {{kbd | key=2017/02/03 週五 15:35:31.61}}
* Windows 10 in Mandarin: {{kbd | key=2017/02/03 週五 15:35:31.61}}
* Windows Server 2019 Standard in Mandarin: {{kbd | key=週五 2024/03/01 16:43:30.32}}
* Windows Server 2019 Standard in Mandarin: {{kbd | key=週五 2024/03/01 16:43:30.32}}


Result of {{kbd | key= <nowiki>echo %DATE% %TIME%</nowiki>}} {{Win}}. By OS:
* Windows Server 2019 Standard in Mandarin: {{kbd | key=週五 2024/03/01 16:43:30.32}}


If PHP was installed. (1) Saved the PHP execution result to the file `today.txt` (2) Read the file content and save to the variable '%TODAY%'
If PHP was installed. (1) Saved the PHP execution result to the file `today.txt` (2) Read the file content and save to the variable '%TODAY%'

Navigation menu