Is there a UNIX command for converting a time-and-date to UNIX time?
I have found many ways to convert in the other direction (FROM UNIX time to time-and-date), but I need the outcome to be UNIX time. Thank you.
- Anonymous1 decade agoFavorite Answer
date +"%s" -d "Fri Apr 24 13:14:39 CDT 2009"
1240596879Source(s): http://en.wikipedia.org/wiki/Date_(Unix) Read also the man pages
Still have questions? Get your answers by asking now.