Display current time with time zone in PowerShell

前端 未结 7 810
盖世英雄少女心
盖世英雄少女心 2021-02-14 02:06

I\'m trying to display the local time on my system with the TimeZone. How can I display time in this format the simplest way possible on any system?:

Time: 8:00:34 AM ES

相关标签:
7条回答
  • 2021-02-14 03:06

    Russia, France, Norway, Germany:

    get-date -format "HH:mm:ss ffffd dd'.'MM'.'yy' г.' zzz"
    

    Output for Russian time zone: 22:47:27 Чт 21.11.19 г. +03:00

    Others - just change the code.

    0 讨论(0)
提交回复
热议问题