$ date +%s
1746203311
You too can convert a timestamp again to a human-friendly date:
$ date -d @1746203311
Fri Might 2 12:28:31 PM EDT 2025
The date -u command shows the date and time in UTC (coordinated common time):
$ date -u
Fri Might 2 04:30:55 PM UTC 2025
You’ll be able to show the date in ISO 8601 format like this:
$ date --iso-8601
2025-05-02
You’ll be able to attain again and ahead with the date command as in these examples:
$ date --date="subsequent Friday"
Fri Might 9 12:00:00 AM EDT 2025
$ date --date="3 months in the past"
Solar Feb 2 11:36:28 AM EST 2025
Actually, you could be exceedingly detailed in your requests as proven within the instance beneath.
$ date --date="2 years 4 months 1 week 3 days 7 hours 59 minutes in the past"
Solar Sep 12 06:38:26 PM EDT 2027
The date command can present a date-specific time stamp for file backups with a command like certainly one of these:
