Converting normal time to Unix time

Have you ever wondered how much seconds passed since 00:00:00 Jan 1 1970 (unix time)?

OK, here goes the answer…

date -d \”May 31 21:15:00 2003\” +%s

or

date -d now +%s

Leave a Reply

You must be logged in to post a comment.