Show current time

From LemonWiki共筆
Revision as of 17:07, 2 December 2019 by Planetoid (talk | contribs)
Jump to navigation Jump to search

Multiple approached to show current time

  • date (Linux Os linux.png ) output the system date: Thu Oct 25 15:05:10 CST 2012 [1][2]
  • TZ=Asia/Taipei date (Linux Os linux.png ) output the time from the Taipei/CST timezone [3]
  • date/t (Win Os windows.png ) (parameter: /t will not ask you to change the current date)
output:
OS in English: Thu 05/03/2012
OS in Mandarin Chinese (XP): 2012/05/03 星期四
OS in Mandarin Chinese (Windows 8, Windows Server 2008 R2): 2014/07/01 週二
OS in Mandarin Chinese (Windows 10): 週一 2019/12/02
  • prompt $d $t $_$P$G (Win Os windows.png [4])
output:
OS in Mandarin Chinese (Windows 10): 2017/02/03 週五 15:35:31.61