import time
def bigintToDateTime(d):
return time.localtime(d)

 

def dateTimeToBigint(d=None):
if d==None:
d=time.gmtime()
return int(time.mktime(d))

 

def stringToDateTime(s):
return time.strptime(s, "%Y-%m-%d %H:%M:%S")

 

def dateTimeToSting(d):
if d==None:
d=time.gmtime()
return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(d))



int(time.mktime(postTime.timetuple()))

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-05-23
  • 2021-08-02
  • 2021-09-22
  • 2021-12-11
猜你喜欢
  • 2021-09-02
  • 2021-07-21
  • 2021-09-03
  • 2021-12-29
  • 2021-09-02
  • 2022-12-23
相关资源
相似解决方案