<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[如何在shell中将unix时间戳转换为系统时间]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Linux技术]]></category>
<pubDate>Wed, 15 Jun 2011 18:43:47 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	用date +%s可以得到UNIX的时间戳,<br/>[/home/javalee/myshell] # date +%s<br/>1060510783<br/>而用<br/><br/>date -d '1970-01-01 UTC '$1' seconds' +"%Y-%m-%d %T"<br/>[/home/javalee/myshell] #utc 1047335700<br/>2003-03-11 06:35:00<br/>可以把UNIX时间戳转换成当前系统时间! <br/><br/>awk日期和时间戳转换<br/>2011-03-23 15:36 <br/><br/>strftime 将时间戳转日期<br/>awk 'BEGIN&#123;print strftime("%Y-%m-%d",systime())&#125;'<br/><br/>将日期转为时间戳<br/>awk 'BEGIN &#123;printf("%d&#92;n",mktime(2006" "8" "5" "15" "09" "0))&#125;'<br/> <br/><br/>Tags - <a href="http://www.zhanghaijun.com/tags/unix/" rel="tag">unix</a> , <a href="http://www.zhanghaijun.com/tags/%25E6%2597%25B6%25E9%2597%25B4%25E6%2588%25B3/" rel="tag">时间戳</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 如何在shell中将unix时间戳转换为系统时间]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>