I'm looking for a way to display my time in Debian Linux as a timestamp, e.g.

1279628325

I can't find any options to do that with the date command. Any ideas?

link|improve this question

60% accept rate
feedback

3 Answers

up vote 3 down vote accepted

You can do this with

date +%s

For more possibilities, see

man date
link|improve this answer
feedback

You can use the following:

date +%s
link|improve this answer
feedback

The Unix Time is nothing more then the seconds from 01/01/1970. So all you have to do is convert your timestamps into total seconds since the beginning of the UNIX-Era.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.