Total Hit Counter

Friday, March 8, 2013

Date command in linux

Hi Friends,

We can convert Unix timestamp to date and date to unix timestamp using date command .

Unix timestamp to date conversion.


root@SHANKAR:~# date -d @1285977600
Fri Oct  1 17:00:00 PDT 2010


Date to Unix timestamp conversion.

root@SHANKAR:~# date -d "2010-10-30" "+%s"
1288422000


No comments: