Forrest logo
back to the date tool

date:tldr:55615

date: Convert a date specified as a Unix timestamp to the default format.
$ date -d @${1473305798}
try on your machine

The command "date -d @${1473305798}" is used to convert a Unix timestamp to a readable date and time format.

Here's a breakdown of the different elements:

  • "date" is the command itself, used to display the current date and time.
  • "-d" is an option followed by an argument that specifies the date or time string to be used.
  • "@" is used to indicate that the given timestamp should be interpreted as a Unix timestamp.
  • "${1473305798}" is the Unix timestamp value represented in this example. Unix timestamps are the number of seconds that have passed since January 1, 1970, 00:00:00 UTC.

So, when you run this command, it will take the Unix timestamp 1473305798 and convert it into a human-readable date and time format, which will be displayed as the output.

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 date tool