Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
35b84b41
Commit
35b84b41
authored
Dec 24, 2007
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of fix for issue 1695.
parent
4f1cbd27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Misc/NEWS
Misc/NEWS
+2
-0
Modules/timemodule.c
Modules/timemodule.c
+2
-2
No files found.
Misc/NEWS
View file @
35b84b41
...
@@ -51,6 +51,8 @@ Core and builtins
...
@@ -51,6 +51,8 @@ Core and builtins
Library
Library
-------
-------
- Issue #1695: Fixed typo in the docstrings for time.localtime() and gmtime().
- Issue #1642: Fix segfault in ctypes when trying to delete attributes.
- Issue #1642: Fix segfault in ctypes when trying to delete attributes.
- os.access now returns True on Windows for any existing directory.
- os.access now returns True on Windows for any existing directory.
...
...
Modules/timemodule.c
View file @
35b84b41
...
@@ -317,7 +317,7 @@ time_gmtime(PyObject *self, PyObject *args)
...
@@ -317,7 +317,7 @@ time_gmtime(PyObject *self, PyObject *args)
}
}
PyDoc_STRVAR
(
gmtime_doc
,
PyDoc_STRVAR
(
gmtime_doc
,
"gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,
\n
\
"gmtime([seconds]) -> (tm_year, tm_mon, tm_
m
day, tm_hour, tm_min,
\n
\
tm_sec, tm_wday, tm_yday, tm_isdst)
\n
\
tm_sec, tm_wday, tm_yday, tm_isdst)
\n
\
\n
\
\n
\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
\n
\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
\n
\
...
@@ -333,7 +333,7 @@ time_localtime(PyObject *self, PyObject *args)
...
@@ -333,7 +333,7 @@ time_localtime(PyObject *self, PyObject *args)
}
}
PyDoc_STRVAR
(
localtime_doc
,
PyDoc_STRVAR
(
localtime_doc
,
"localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
\n
\
"localtime([seconds]) -> (tm_year,tm_mon,tm_
m
day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
\n
\
\n
\
\n
\
Convert seconds since the Epoch to a time tuple expressing local time.
\n
\
Convert seconds since the Epoch to a time tuple expressing local time.
\n
\
When 'seconds' is not passed in, convert the current time instead."
);
When 'seconds' is not passed in, convert the current time instead."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment