mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF patch 407758, "timemodule patches for Cygwin", from Norman Vine.
http://sourceforge.net/tracker/?func=detail&aid=407758&group_id=5470&atid=305470
This commit is contained in:
parent
ce7ef599d2
commit
26ae7cd75a
1 changed files with 7 additions and 0 deletions
|
@ -664,6 +664,13 @@ inittime(void)
|
|||
ins(d, "tzname", Py_BuildValue("(zz)", "", ""));
|
||||
#endif /* macintosh */
|
||||
#endif /* HAVE_TM_ZONE */
|
||||
#ifdef __CYGWIN__
|
||||
tzset();
|
||||
ins(d, "timezone", PyInt_FromLong(_timezone));
|
||||
ins(d, "altzone", PyInt_FromLong(_timezone));
|
||||
ins(d, "daylight", PyInt_FromLong(_daylight));
|
||||
ins(d, "tzname", Py_BuildValue("(zz)", _tzname[0], _tzname[1]));
|
||||
#endif /* __CYGWIN__ */
|
||||
#endif /* !HAVE_TZNAME || __GLIBC__ */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue