Expand description
Safe Rust wrappers for types defined in the Python datetime
library
For more details about these types, see the Python documentation
Macrosยง
- ffi_
fun_ ๐with_ autoinit Non- Py_LIMITED_API
Structsยง
- PyDate
- Bindings around
datetime.date
. - PyDate
Time - Bindings for
datetime.datetime
. - PyDelta
- Bindings for
datetime.timedelta
. - PyTime
- Bindings for
datetime.time
. - PyTz
Info - Bindings for
datetime.tzinfo
.
Traitsยง
- PyDate
Access Non- Py_LIMITED_API
- Trait for accessing the date components of a struct containing a date.
- PyDelta
Access Non- Py_LIMITED_API
- Trait for accessing the components of a struct containing a timedelta.
- PyTime
Access Non- Py_LIMITED_API
- Trait for accessing the time components of a struct containing a time.
- PyTz
Info Access - Trait for accessing the components of a struct containing a tzinfo.
Functionsยง
- PyDate
Time_ ๐ โ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. - PyTZ
Info_ ๐ โCheck - Check if
op
is aPyDateTimeAPI.TZInfoType
or subtype. - PyTime_
Check ๐ โ - Check if
op
is aPyDateTimeAPI.TimeType
or subtype. - ensure_
datetime_ ๐api Non- Py_LIMITED_API
- expect_
datetime_ ๐api Non- Py_LIMITED_API
- opt_
to_ ๐pyobj Non- Py_LIMITED_API
- timezone_
utc Deprecated - Equivalent to
datetime.timezone.utc