Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtCore »

Classe « QDateTime »

Informations générales

Héritage

builtins.object
    Object
        QDateTime

Définition

class QDateTime(Object):

Description [extrait de QDateTime.__doc__]

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: int = PySide6.QtCore.Qt.TimeSpec.LocalTime) -> None
QDateTime(self, date: PySide6.QtCore.QDate, time: PySide6.QtCore.QTime, spec: PySide6.QtCore.Qt.TimeSpec = PySide6.QtCore.Qt.TimeSpec.LocalTime, offsetSeconds: int = 0) -> None
QDateTime(self, date: PySide6.QtCore.QDate, time: PySide6.QtCore.QTime, timeZone: PySide6.QtCore.QTimeZone) -> None
QDateTime(self, other: PySide6.QtCore.QDateTime) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__hash__(self) Return hash(self). [extrait de __hash__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
addDays(self, days: int) -> PySide6.QtCore.QDateTime addDays(self, days: int) -> PySide6.QtCore.QDateTime [extrait de addDays.__doc__]
addMonths(self, months: int) -> PySide6.QtCore.QDateTime addMonths(self, months: int) -> PySide6.QtCore.QDateTime [extrait de addMonths.__doc__]
addMSecs(self, msecs: int) -> PySide6.QtCore.QDateTime addMSecs(self, msecs: int) -> PySide6.QtCore.QDateTime [extrait de addMSecs.__doc__]
addSecs(self, secs: int) -> PySide6.QtCore.QDateTime addSecs(self, secs: int) -> PySide6.QtCore.QDateTime [extrait de addSecs.__doc__]
addYears(self, years: int) -> PySide6.QtCore.QDateTime addYears(self, years: int) -> PySide6.QtCore.QDateTime [extrait de addYears.__doc__]
currentDateTime() -> PySide6.QtCore.QDateTime currentDateTime() -> PySide6.QtCore.QDateTime [extrait de currentDateTime.__doc__]
currentDateTimeUtc() -> PySide6.QtCore.QDateTime currentDateTimeUtc() -> PySide6.QtCore.QDateTime [extrait de currentDateTimeUtc.__doc__]
currentMSecsSinceEpoch() -> int currentMSecsSinceEpoch() -> int [extrait de currentMSecsSinceEpoch.__doc__]
currentSecsSinceEpoch() -> int currentSecsSinceEpoch() -> int [extrait de currentSecsSinceEpoch.__doc__]
date(self) -> PySide6.QtCore.QDate date(self) -> PySide6.QtCore.QDate [extrait de date.__doc__]
daysTo(self, arg__1: PySide6.QtCore.QDateTime) -> int daysTo(self, arg__1: PySide6.QtCore.QDateTime) -> int [extrait de daysTo.__doc__]
fromMSecsSinceEpoch fromMSecsSinceEpoch(msecs: int, spec: PySide6.QtCore.Qt.TimeSpec = PySide6.QtCore.Qt.TimeSpec.LocalTime, offsetFromUtc: int = 0) -> PySide6.QtCore.QDateTime [extrait de fromMSecsSinceEpoch.__doc__]
fromSecsSinceEpoch fromSecsSinceEpoch(secs: int, spec: PySide6.QtCore.Qt.TimeSpec = PySide6.QtCore.Qt.TimeSpec.LocalTime, offsetFromUtc: int = 0) -> PySide6.QtCore.QDateTime [extrait de fromSecsSinceEpoch.__doc__]
fromString fromString(string: str, format: PySide6.QtCore.Qt.DateFormat = PySide6.QtCore.Qt.DateFormat.TextDate) -> PySide6.QtCore.QDateTime [extrait de fromString.__doc__]
isDaylightTime(self) -> bool isDaylightTime(self) -> bool [extrait de isDaylightTime.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
msecsTo(self, arg__1: PySide6.QtCore.QDateTime) -> int msecsTo(self, arg__1: PySide6.QtCore.QDateTime) -> int [extrait de msecsTo.__doc__]
offsetFromUtc(self) -> int offsetFromUtc(self) -> int [extrait de offsetFromUtc.__doc__]
secsTo(self, arg__1: PySide6.QtCore.QDateTime) -> int secsTo(self, arg__1: PySide6.QtCore.QDateTime) -> int [extrait de secsTo.__doc__]
setDate(self, date: PySide6.QtCore.QDate) -> None setDate(self, date: PySide6.QtCore.QDate) -> None [extrait de setDate.__doc__]
setMSecsSinceEpoch(self, msecs: int) -> None setMSecsSinceEpoch(self, msecs: int) -> None [extrait de setMSecsSinceEpoch.__doc__]
setOffsetFromUtc(self, offsetSeconds: int) -> None setOffsetFromUtc(self, offsetSeconds: int) -> None [extrait de setOffsetFromUtc.__doc__]
setSecsSinceEpoch(self, secs: int) -> None setSecsSinceEpoch(self, secs: int) -> None [extrait de setSecsSinceEpoch.__doc__]
setTime(self, time: PySide6.QtCore.QTime) -> None setTime(self, time: PySide6.QtCore.QTime) -> None [extrait de setTime.__doc__]
setTimeSpec(self, spec: PySide6.QtCore.Qt.TimeSpec) -> None setTimeSpec(self, spec: PySide6.QtCore.Qt.TimeSpec) -> None [extrait de setTimeSpec.__doc__]
setTimeZone(self, toZone: PySide6.QtCore.QTimeZone) -> None setTimeZone(self, toZone: PySide6.QtCore.QTimeZone) -> None [extrait de setTimeZone.__doc__]
swap(self, other: PySide6.QtCore.QDateTime) -> None swap(self, other: PySide6.QtCore.QDateTime) -> None [extrait de swap.__doc__]
time(self) -> PySide6.QtCore.QTime time(self) -> PySide6.QtCore.QTime [extrait de time.__doc__]
timeSpec(self) -> PySide6.QtCore.Qt.TimeSpec timeSpec(self) -> PySide6.QtCore.Qt.TimeSpec [extrait de timeSpec.__doc__]
timeZone(self) -> PySide6.QtCore.QTimeZone timeZone(self) -> PySide6.QtCore.QTimeZone [extrait de timeZone.__doc__]
timeZoneAbbreviation(self) -> str timeZoneAbbreviation(self) -> str [extrait de timeZoneAbbreviation.__doc__]
toLocalTime(self) -> PySide6.QtCore.QDateTime toLocalTime(self) -> PySide6.QtCore.QDateTime [extrait de toLocalTime.__doc__]
toMSecsSinceEpoch(self) -> int toMSecsSinceEpoch(self) -> int [extrait de toMSecsSinceEpoch.__doc__]
toOffsetFromUtc(self, offsetSeconds: int) -> PySide6.QtCore.QDateTime toOffsetFromUtc(self, offsetSeconds: int) -> PySide6.QtCore.QDateTime [extrait de toOffsetFromUtc.__doc__]
toPython(self) -> object toPython(self) -> object [extrait de toPython.__doc__]
toSecsSinceEpoch(self) -> int toSecsSinceEpoch(self) -> int [extrait de toSecsSinceEpoch.__doc__]
toString toString(self, format: PySide6.QtCore.Qt.DateFormat = PySide6.QtCore.Qt.DateFormat.TextDate) -> str [extrait de toString.__doc__]
toTimeSpec(self, spec: PySide6.QtCore.Qt.TimeSpec) -> PySide6.QtCore.QDateTime toTimeSpec(self, spec: PySide6.QtCore.Qt.TimeSpec) -> PySide6.QtCore.QDateTime [extrait de toTimeSpec.__doc__]
toTimeZone(self, toZone: PySide6.QtCore.QTimeZone) -> PySide6.QtCore.QDateTime toTimeZone(self, toZone: PySide6.QtCore.QTimeZone) -> PySide6.QtCore.QDateTime [extrait de toTimeZone.__doc__]
toUTC(self) -> PySide6.QtCore.QDateTime toUTC(self) -> PySide6.QtCore.QDateTime [extrait de toUTC.__doc__]
YearRange

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __reduce_ex__, __sizeof__, __str__