Linux date manipulation 2008-05-12 09:54am
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:
If you want to convert a given time into unixtime just use a date format:
Code:
date -d '2008-05-13 14:00 UTC' |
If you want to convert a given time into unixtime just use a date format:
Code:
date +%s -d '2008-05-13 14:00 UTC' |