Python毫秒准换为秒

   timeStamp = int(key['_source']['logoutime'])
                                timeStamp /= 1000.0
                                timearr = time.localtime(timeStamp)
                                otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timearr)
                                exit(otherStyleTime)

你可能感兴趣的:(Python)