The date command can display the date, time, time zone and more.
admin@sangkrit55 ~$ date
Tue Apr 17 12:44:30 CEST 2010
A date string can be customized to display the format of your choice. Check the man page for more options.
admin@sangkrit55 ~$ date +’%A %d-%m-%Y’
Tuesday 17-04-2010
Time on any Unix is calculated in number of seconds since 1969 (the first second being the first second of the first of January 1970). Use date +%s to display Unix time in seconds.
admin@sangkrit55 ~$ date +%s
1271501080
When will this seconds counter reach two thousand million ?
admin@sangkrit55 ~$ date -d ’1970-01-01 + 2000000000 seconds’
Wed May 18 04:33:20 CEST 2033



