• time


    时间字符串转时间戳
    time.mktime(time.strptime("20200105 11:01:01,111", '%Y%m%d %H:%M:%S,%f'))

    时间戳转为字符串
    date = time.strftime("%Y-%m-%d %H:%M:%S")

  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
  • 原文地址:https://www.cnblogs.com/0916m/p/12988984.html
Copyright © 2020-2023  润新知