convert standard time to unix time bash

Nils Kassube kassube at gmx.net
Thu Jun 18 19:05:27 UTC 2009


Tony Asnicar wrote:
> I know that I could convert unix time to standard time like: date -d
> "@1234567890"
>
> but how can I convert standard time to unix time? :D

Try this:

date +%s


Nils





More information about the ubuntu-users mailing list