Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b58f69d2
Commit
b58f69d2
authored
Feb 28, 2013
by
zaur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for date/time/datetime/timedelta members
parent
76646102
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Includes/cpython/datetime.pxd
Cython/Includes/cpython/datetime.pxd
+3
-3
No files found.
Cython/Includes/cpython/datetime.pxd
View file @
b58f69d2
...
@@ -122,10 +122,10 @@ cdef inline object datetime_new(int year, int month, int day, int hour, int minu
...
@@ -122,10 +122,10 @@ cdef inline object datetime_new(int year, int month, int day, int hour, int minu
cdef
inline
object
timedelta_new
(
int
days
,
int
seconds
,
int
useconds
):
cdef
inline
object
timedelta_new
(
int
days
,
int
seconds
,
int
useconds
):
return
PyDateTimeAPI
.
Delta_FromDelta
(
days
,
seconds
,
useconds
,
1
,
PyDateTimeAPI
.
DeltaType
)
return
PyDateTimeAPI
.
Delta_FromDelta
(
days
,
seconds
,
useconds
,
1
,
PyDateTimeAPI
.
DeltaType
)
#
# More recognizable getters for date/time/datetime/timedelta.
# More recognizable getters for date/time/datetime/timedelta.
# There are no setters because datetime.h didn't exposed them.
# There are no setters because datetime.h hasn't them.
#
# This is because of immutable nature of these objects by design.
# If you would change time/date/datetime/timedelta object you need to recreate.
# Get tzinfo of time
# Get tzinfo of time
cdef
inline
object
time_tzinfo
(
object
o
):
cdef
inline
object
time_tzinfo
(
object
o
):
...
...
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