TestNG生成了一个 emailable-report.html ,其中包含许多Epoch time
格式:
<td rowspan="1">1444899469337</td><td rowspan="1">2316</td></tr><tr class="passedeven"><td><a href="#m1">toProjectsButton</a></td><td rowspan="1">1444899471653</td><td rowspan="1">40</td></tr><tr class="passedeven"><td><a href="#m2">toReqButton</a></td><td rowspan="1">1444899471694</td><td rowspan="1">38</td></tr><tr class="passedeven"><td><a href="#m3">toSquareButton</a></td><td rowspan="1">1444899471732</td><td rowspan="1">37</td></tr><tr class="passedeven"><td><a href="#m4">usageAmount</a></td><td rowspan="1">1444899471770</td><td rowspan="1">130</td></tr><tr class="passedeven"><td><a href="#m5">usageAppShow</a></td><td rowspan="1">1444899471900</td><td rowspan="1">2761</td></tr></tbody><tbody id="t1"><tr><th colspan="4">ÉÏ´«Ó¦ÓÃ — failed</th></tr><tr class="failedeven"><td rowspan="1">com.netease.web.ct.taskgroup.AddTask</td><td><a href="#m6">addAppTask</a></td><td rowspan="1">1444899495534</td><td rowspan="1">1212862</td>
1444899469337
之类的数字是Epoch time
。
我知道我可以使用date
命令转换单个Epoch time
,如下所示:
Execute: date -d @1447990590 +'%Y-%m-%d %H:%M:%S'
Return: 2015-11-20 11:36:30
我的问题是,如何使用shell命令转换 emailable-report.html 中的所有Epoch time
个外观?
有没有人对此有所了解?