strftime = datetime değerlerini senkrinize etmeye yarar.
suankizaman = time.strftime("%Y-%m-%d %H:%M:%S")
istanbul = pytz.timezone('Europe/Istanbul')
timenow = time.mktime(time.strptime(time.strftime("%Y-%m-%d %H:%M:%S"), "%Y-%m-%d %H:%M:%S"))
for twt in hometweets[0:1]:
dt = twt.created_at
strfmaker = dt.strftime("%Y-%m-%d %H:%M:%S")
created_at = datetime.strptime(str(strfmaker), "%Y-%m-%d %H:%M:%S")
amigo = pytz.utc.localize(created_at).astimezone(istanbul)
normal = dt.strftime("%m")
xnxx = time.mktime(time.strptime(str(dt),"%Y-%m-%d %H:%M:%S"))
Hiç yorum yok:
Yorum Gönder