Re: convert standard time to unix time bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Tony Asnicar wrote:
> :) How??
>
> 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

You want to convert the current time into the # of seconds elapsed
since 1970 ?

date +%s

or date --date="some other date" +%s

nate

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux