Linux date manipulation

The date command in Linux is very powerful for converting dates and times. If you have a given time in another timezone, or even UTC, you can convert it to your local timezone with this command:

date -d '2008-05-13 14:00 UTC'

If you want to convert a given time into unixtime just use a date format:

date +%s -d '2008-05-13 14:00 UTC'


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.226.94.49
To prevent spam please submit by clicking the kitten: