Use Python to find out if a timezone currently in daylight savings time [duplicate]
This question already has an answer here: Is a specific timezone using DST right now? 1 answer We have a server that runs on GMT time. I need to write a Python script that determines if it's currently (at this very second) Daylight Savings Time (DST) in Los Angeles, CA. How can I accomplish this? I took a look at pytz and time, but I can't figure it out. I realize that I could create some logic such as comparing the current time in LA to GMT time, but it would be a lot cleaner if I could use a standard library instead. Thanks Edit: Here's some sample code of me setting up the timezone: from