In [7]:
import time, threading
import datetime as dt
tiempo1 =dt.datetime(2000,11,30,0,0,0)
print(tiempo1)
tiempo1=tiempo1.timetuple()
on=True
times=['Sat May 13 14:08:49 2017', 'Sat May 13 14:08:59 2017', 'Sat May 13 14:09:09 2017', 'Sat May 13 14:09:19 2017', 'Sat May 13 14:09:29 2017', 'Sat May 13 14:09:39 2017', 'Sat May 13 14:09:49 2017', 'Sat May 13 14:09:59 2017', 'Sat May 13 14:10:09 2017']
In [8]:
In [9]:
print(tiempo1)
tiempo=time.asctime(tiempo1)
print(tiempo)
print(time.strptime(tiempo,"%a %b %d %H:%M:%S %Y"))
tiempostruct=time.strptime(tiempo,"%a %b %d %H:%M:%S %Y")
print(tiempostruct.tm_year)
In [54]:
x='Mon May 14 19:00:00 2017'
print(time.strptime(x,"%a %b %d %H:%M:%S %Y"))
In [12]:
print(times[0]>'Sat April 13 14:08:49 2017')
In [3]:
In [4]:
In [ ]:
In [ ]: