Forrest logo
back to the Get-Date tool

get-date:tldr:10488

get-date: Convert a Unix timestamp.
$ Get-Date -UnixTimeSeconds ${1577836800}
try on your machine

The command Get-Date -UnixTimeSeconds ${1577836800} is a PowerShell command that retrieves the date and time in a specific format from a Unix timestamp.

Here's the breakdown of the command:

  • Get-Date: This is a cmdlet (command-let) in PowerShell that gets the current date and time or a specific date and time if specified.
  • -UnixTimeSeconds: This is a parameter provided to the Get-Date command which indicates that the input date being provided is a Unix timestamp in seconds.
  • ${1577836800}: This is the Unix timestamp being passed as an argument to the -UnixTimeSeconds parameter. In this case, the timestamp value is 1577836800.

When you run this command, PowerShell will convert the provided Unix timestamp (1577836800) into a human-readable date and time format. The resulting output will be the equivalent date and time for the given Unix timestamp.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the Get-Date tool