DateTime
Qt Base Class: QDateTime
Signature: QDateTime(self) -> None
QDateTime(self, arg__1: int, arg__2: int, arg__3: int, arg__4: int, arg__5: int, arg__6: int) -> None
QDateTime(self, arg__1: int, arg__2: int, arg__3: int, arg__4: int, arg__5: int, arg__6: int, arg__7: int, arg__8: PySide6.QtCore.Qt.TimeSpec = Instance(Qt.LocalTime)) -> None
QDateTime(self, arg__1: int, arg__2: int, arg__3: int, arg__4: int, arg__5: int, arg__6: int, arg__7: int, arg__8: int = Instance(Qt.LocalTime)) -> None
QDateTime(self, date: PySide6.QtCore.QDate, time: PySide6.QtCore.QTime) -> None
QDateTime(self, date: PySide6.QtCore.QDate, time: PySide6.QtCore.QTime, spec: PySide6.QtCore.Qt.TimeSpec, offsetSeconds: int = 0) -> None
QDateTime(self, date: PySide6.QtCore.QDate, time: PySide6.QtCore.QTime, timeZone: Union[PySide6.QtCore.QTimeZone, PySide6.QtCore.QTimeZone.Initialization]) -> None
QDateTime(self, other: PySide6.QtCore.QDateTime) -> None
Base classes
Name | Children | Inherits |
---|---|---|
QDateTime PySide6.QtCore QDateTime(self) -> None |
⋔ Inheritance diagram
graph TD
1473299721328["core.DateTime"]
1473289002304["QtCore.QDateTime"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473289002304 --> 1473299721328
1473291690208 --> 1473289002304
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: QDateTime
DateTime funcitons.
Source code in prettyqt\core\_datetime.py
get_time_spec() -> constants.TimeSpecStr
set_time_spec(spec: constants.TimeSpecStr | constants.TimeSpec)
Set the time specification.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spec |
TimeSpecStr | TimeSpec
|
time specification to use |
required |