From 61007ab1dc261be04cdea8bcf9cf995f245f72da Mon Sep 17 00:00:00 2001 From: Yasushi Saito Date: Mon, 19 Sep 2016 14:38:14 -0700 Subject: [PATCH] Add tm_zone and tm_gmtoff to time.pyi (#551) * Enable tm_gmtoff and tm_zone only for python >= 3.3. --- stdlib/3/time.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/3/time.pyi b/stdlib/3/time.pyi index a1b8626c6..fd6f488d4 100644 --- a/stdlib/3/time.pyi +++ b/stdlib/3/time.pyi @@ -4,6 +4,7 @@ # based on: http://docs.python.org/3.2/library/time.html#module-time # see: http://nullege.com/codes/search?cq=time +import sys from typing import Tuple, Union # ----- variables and constants ----- @@ -32,7 +33,9 @@ class struct_time: tm_wday = 0 tm_yday = 0 tm_isdst = 0 - + if sys.version_info >= (3, 3): + tm_gmtoff = 0 + tm_zone = 'GMT' # ----- functions ----- def asctime(t: Union[Tuple[int, int, int, int, int, int, int, int, int],