TestNG generated an emailable-report.html with many Epoch time
format like this:
<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>
Numbers such as 1444899469337
are Epoch time
.
I know I can use date
command to convert a single Epoch time
like this:
Execute: date -d @1447990590 +'%Y-%m-%d %H:%M:%S'
Return: 2015-11-20 11:36:30
My question is, how to use shell command to convert all the Epoch time
appearances in the emailable-report.html?
Does anyone have any experience on this?