unix:date

This is an old revision of the document!


Date and Time

date +%FT%T%z

ls /usr/share/zoneinfo/Asia
TZ='Asia/Tokyo' date

date -r 1420888742 # BSD date
date -d @1420888742 # GNU date

date -d '2021-02-19 23:42UTC'

specifying date and timezone

date -u -d "2021-02-19 23:42 CET" +"%Y-%m-%d %H:%M %Z"

using current system time <code> date -u +ā€œ%Y-%m-%d %H:%M %Zā€ <code>

  • unix/date.1605014153.txt.gz
  • Last modified: 2020-11-10T14:15:53+0100
  • by Wolfgang