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§
- PyDateTime_Check 🔒 ⚠Check if
op
is aPyDateTimeAPI.DateTimeType
or subtype. - PyDate_Check 🔒 ⚠Check if
op
is aPyDateTimeAPI.DateType
or subtype. - PyDelta_Check 🔒 ⚠Check if
op
is aPyDateTimeAPI.DetaType
or subtype. - PyTZInfo_Check 🔒 ⚠Check if
op
is aPyDateTimeAPI.TZInfoType
or subtype. - PyTime_Check 🔒 ⚠Check if
op
is aPyDateTimeAPI.TimeType
or subtype. - Equivalent to
datetime.timezone
constructor - Equivalent to
datetime.timezone.utc