#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import time
import datetime


line="Wed 11/22/2017 11:18 PM"
timeValue=time.strptime("Wed 11/22/2017 11:18 PM","%a %m/%d/%Y %H:%M %p")
day = time.strftime('%Y-%m-%d',timeValue)
year = time.strftime('%Y',timeValue)
UTC_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
utcValue=time.strftime("%Y-%m-%dT%H:%M:%S.%fZ", timeValue)


print(utcValue) 

 

s=""
print("true" if (s.strip()=='') else "false")

  

m=datetime.datetime.utcfromtimestamp(time.mktime(time.strptime("Wed 11/22/2017 11:18 PM","%a %m/%d/%Y %H:%M %p")))

print(m)  

  

 

相关文章:

  • 2021-12-05
  • 2021-12-05
  • 2021-07-28
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2021-12-05
  • 2021-12-05
  • 2021-09-24
  • 2021-05-21
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案