Available on non-
Py_LIMITED_API
only.Expand description
Safe Rust wrappers for types defined in the Python datetime
library
For more details about these types, see the Python documentation
Macrosยง
Structsยง
- Bindings around
datetime.date
. - Bindings for
datetime.datetime
. - Bindings for
datetime.timedelta
. - Bindings for
datetime.time
. - Bindings for
datetime.tzinfo
.
Traitsยง
- Trait for accessing the date components of a struct containing a date.
- Trait for accessing the components of a struct containing a timedelta.
- Trait for accessing the time components of a struct containing a time.
- Trait for accessing the components of a struct containing a tzinfo.
Functionsยง
- PyDate
Time_ ๐ โCheck Check ifop
is aPyDateTimeAPI.DateTimeType
or subtype. - PyDate_
Check ๐ โCheck ifop
is aPyDateTimeAPI.DateType
or subtype. - PyDelta_
Check ๐ โCheck ifop
is aPyDateTimeAPI.DetaType
or subtype. - PyTZ
Info_ ๐ โCheck Check ifop
is aPyDateTimeAPI.TZInfoType
or subtype. - PyTime_
Check ๐ โCheck ifop
is aPyDateTimeAPI.TimeType
or subtype. - ensure_
datetime_ ๐api - expect_
datetime_ ๐api - opt_
to_ ๐pyobj - Equivalent to
datetime.timezone
constructor - Equivalent to
datetime.timezone.utc
- timezone_
utc_ bound Deprecated Deprecated name fortimezone_utc
.