I am trying to write a Python code which will output the midnight time of the current day in Eastern Daylight Time. How can that be done?
Asked
Active
Viewed 20 times
-2
-
Do you mean 12 AM with respect to EST from another timezone? – Ganesh Kathiresan May 06 '22 at 13:25
-
@GaneshKathiresan My time zone is New Delhi, India. I would like to get the 12AM time EST. – Anwesa Roy May 06 '22 at 13:30
-
So essentially you want to convert 12 AM IST to EST yeah? Something like https://stackoverflow.com/questions/10999021/how-to-convert-gmt-time-to-est-time-using-python? – Ganesh Kathiresan May 06 '22 at 13:34
-
Or either ways. It's boils down to some timezone conversion, you'll find plenty of stuff for that – Ganesh Kathiresan May 06 '22 at 13:35
-
@GaneshKathiresan You got me wrong. I didn't mean that. – Anwesa Roy May 06 '22 at 13:37
-
I don't want to convert 12 AM IST to EST. I want to get the midnight time of EST for the current day in EST. – Anwesa Roy May 06 '22 at 13:41
-
@GaneshKathiresan If you would please delete your comments so that people don't get confused, it will be of great help! – Anwesa Roy May 06 '22 at 13:43