date - Python convert epoch time to day of the week -
date - Python convert epoch time to day of the week -
how can in python? want day of week returned.
>>> convert_epoch_time_to_day_of_the_week(epoch_time_in_miliseconds) >>> 'tuesday'
ep = 1412673904406 datetime import datetime print datetime.fromtimestamp(ep/1000).strftime("%a") tuesday def ep_to_day(ep): homecoming datetime.fromtimestamp(ep/1000).strftime("%a")
python date python-2.7 datetime time
Comments
Post a Comment