Commit b58f69d2 authored by zaur's avatar zaur

Add test for date/time/datetime/timedelta members

parent 76646102
...@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment