We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d50374 commit b130138Copy full SHA for b130138
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TimeModuleBuiltins.java
@@ -100,6 +100,9 @@ public void initialize(PythonCore core) {
100
}
101
102
builtinConstants.put("daylight", PInt.intValue(hasDaylightSaving));
103
+ int rawOffsetSeconds = defaultTimeZone.getRawOffset() / -1000;
104
+ builtinConstants.put("timezone", rawOffsetSeconds);
105
+ builtinConstants.put("altzone", rawOffsetSeconds - 3600);
106
107
108
@TruffleBoundary
0 commit comments