title: Display current time with time zone in PowerShell
body: <p>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?:</p>
  
  <p>Time: 8:00:34 AM EST</p>
  
  <p>I'm currently using the following script:</p>
  
  <pre><code>$localtz = [System.TimeZoneInfo]::Local | Select-Object -expandproperty Id
  if ($localtz -match "Eastern") {$x = " EST"}
  if ($localtz -match "Pacific") {$x = " PST"}
  if ($localtz -match "Central") {$x = " CST"}
  "Time: " + (Get-Date).Hour + ":" + (Get-Date).Minute + ":" + (Get-Date).Second + $x
  </code></pre>
  
  <p>I'd like to be able to display the time without relying on simple logic, but be able to give the local timezone on any system.</p>