Re: convert standard time to unix time bash

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



Tony Asnicar wrote:
> Thank you!!
> 
> The answer waas:
> 
> date --date="2009-06-18 18:57" +%s
> 
> thanks :)

The things that --date will accept aren't very well documented in the 
man page but you can throw things like 'yesterday' or "next-week" or "2 
months ago" at it too.   And you can omit it and just use the +%s to get 
the current unix time.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
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