awk实现time_diff
摘要:
1 awk 'function timediff(ta,tb) {2 split(ta, xa, "[-|:| ]");3 split(tb, xb, "[-|:| ]");4 tas=mktime(xa[1]" "xa[2]" "xa[3]" "xa[4]" "xa[5]" "xa[6]);5 tbs=mktime(xb[1]" "xb[2]" "xb[3]" "xb[4]" 阅读全文
posted @ 2011-10-08 11:25 andrefun 阅读(268) 评论(0) 推荐(0)