completed deadline
15-07-2013 23:10 15-07-2013 23:15
16-07-2013 00:20 16-07-2013 00:15
16-07-2013 00:20 16-07-2013 00:15
16-07-2013 21:04 16-07-2013 21:30
16-07-2013 21:58 16-07-2013 22:00
16-07-2013 23:21 16-07-2013 23:15
16-07-2013 23:21 16-07-2013 23:15
17-07-2013 00:19 17-07-2013 00:15
17-07-2013 00:19 17-07-2013 00:15
17-07-2013 21:18 17-07-2013 21:30
17-07-2013 22:07 17-07-2013 22:00
当我说data['completed'] - data['deadline']
我得到;
-1 day, 23:55:00 # on time
0:05:00
0:05:00
-1 day, 23:34:00 # on time
-1 day, 23:58:00 # on time
0:06:00
0:06:00
0:04:00
0:04:00
-1 day, 23:48:00 # on time
0:07:00
但是当我这样做data['time_delay'] = data['completed'] - data['deadline']
并打印时,data['time_delay']
我得到了;
-300000000000
300000000000
300000000000
-1560000000000
-120000000000
360000000000
360000000000
240000000000
240000000000
-720000000000
420000000000
当输出打印到 csv 时,我得到了同样的结果。
我如何:
处理这个输出?
以“分钟”格式将输出打印到 csv?
处理“准时”输出?