Using the date command

Print date in “Y M D” format, from a specific epoch time

$ date -d @1362384000 "+%Y %m %d"

Get the machine’s time zone

$ date +%z
This entry was posted in date and tagged , , , . Bookmark the permalink.

Comments are closed.