-
Notifications
You must be signed in to change notification settings - Fork 55
Return UTC differential value from adafruit_pyportal.get_local_time() #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
that data is requested |
I believe that in Python3, the base time is UTC and |
hmm - how would you ask Cpython for utc and local time? |
Couldn't you just temporarily set your timezone to something like "Etc/UTC" to get UTC? |
Here's how it works in the Python3 REPL:
|
^^ I'll try that for now. Thanks @makermelissa! |
sounds like we should add |
I'll do that! I'll close this issue since I think we have a potential workaround with @makermelissa 's suggestion. |
yay! |
It would be very useful for calculating time-dependent values (such as sunrise and sunset times) if the
adafruit_pyportal.get_local_time
module also returned the UTC differential value for the local time zone.The text was updated successfully, but these errors were encountered: