:) 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
thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
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
Thank you!!
The answer waas:
date --date=2009-06-18 18:57 +%s
thanks :)
On Thu, Jun 18, 2009 at 8:30 PM, Tony Asnicar asnica...@gmail.com 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
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
4 matches
Mail list logo