格式化twisted / python中的时间戳

时间:2016-12-01 17:55:00

标签: python twisted

我正在运行一个扭曲的脚本来使用ApplicationRunner订阅流。输出类似于:

2016-12-01T12:51:31-0500 n1  p1
2016-12-01T12:51:32-0500 n2  p2

我想要做的是将时间戳重新格式化为

12:51:31
12:51:32

我该怎么做?

0 个答案:

没有答案