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. - ensure_datetime_api ๐
- expect_datetime_api ๐
- opt_to_pyobj ๐
- Equivalent to
datetime.timezone
constructor - Equivalent to
datetime.timezone.utc