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 « PySide2.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)
QDateTime(self, arg__1: PySide2.QtCore.QDate)
QDateTime(self, arg__1: PySide2.QtCore.QDate, arg__2: PySide2.QtCore.QTime, spec: PySide2.QtCore.Qt.TimeSpec = PySide2.QtCore.Qt.TimeSpec.LocalTime)
QDateTime(self, arg__1: int, arg__2: int, arg__3: int, arg__4: int, arg__5: int, arg__6: int)
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 = PySide2.QtCore.Qt.TimeSpec.LocalTime)
QDateTime(self, date: PySide2.QtCore.QDate, time: PySide2.QtCore.QTime, spec: PySide2.QtCore.Qt.TimeSpec, offsetSeconds: int)
QDateTime(self, date: PySide2.QtCore.QDate, time: PySide2.QtCore.QTime, timeZone: PySide2.QtCore.QTimeZone)
QDateTime(self, other: PySide2.QtCore.QDateTime)

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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__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__(self) __copy__(self) [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) -> PySide2.QtCore.QDateTime addDays(self, days: int) -> PySide2.QtCore.QDateTime [extrait de addDays.__doc__]
addMonths(self, months: int) -> PySide2.QtCore.QDateTime addMonths(self, months: int) -> PySide2.QtCore.QDateTime [extrait de addMonths.__doc__]
addMSecs(self, msecs: int) -> PySide2.QtCore.QDateTime addMSecs(self, msecs: int) -> PySide2.QtCore.QDateTime [extrait de addMSecs.__doc__]
addSecs(self, secs: int) -> PySide2.QtCore.QDateTime addSecs(self, secs: int) -> PySide2.QtCore.QDateTime [extrait de addSecs.__doc__]
addYears(self, years: int) -> PySide2.QtCore.QDateTime addYears(self, years: int) -> PySide2.QtCore.QDateTime [extrait de addYears.__doc__]
currentDateTime() -> PySide2.QtCore.QDateTime currentDateTime() -> PySide2.QtCore.QDateTime [extrait de currentDateTime.__doc__]
currentDateTimeUtc() -> PySide2.QtCore.QDateTime currentDateTimeUtc() -> PySide2.QtCore.QDateTime [extrait de currentDateTimeUtc.__doc__]
currentMSecsSinceEpoch() -> int currentMSecsSinceEpoch() -> int [extrait de currentMSecsSinceEpoch.__doc__]
currentSecsSinceEpoch() -> int currentSecsSinceEpoch() -> int [extrait de currentSecsSinceEpoch.__doc__]
date(self) -> PySide2.QtCore.QDate date(self) -> PySide2.QtCore.QDate [extrait de date.__doc__]
daysTo(self, arg__1: PySide2.QtCore.QDateTime) -> int daysTo(self, arg__1: PySide2.QtCore.QDateTime) -> int [extrait de daysTo.__doc__]
fromMSecsSinceEpoch fromMSecsSinceEpoch(msecs: int) -> PySide2.QtCore.QDateTime [extrait de fromMSecsSinceEpoch.__doc__]
fromSecsSinceEpoch fromSecsSinceEpoch(secs: int, spe: PySide2.QtCore.Qt.TimeSpec = PySide2.QtCore.Qt.TimeSpec.LocalTime, offsetFromUtc: int = 0) -> PySide2.QtCore.QDateTime [extrait de fromSecsSinceEpoch.__doc__]
fromString fromString(s: str, f: PySide2.QtCore.Qt.DateFormat = PySide2.QtCore.Qt.DateFormat.TextDate) -> PySide2.QtCore.QDateTime [extrait de fromString.__doc__]
fromTime_t fromTime_t(secsSince1Jan1970UTC: int) -> PySide2.QtCore.QDateTime [extrait de fromTime_t.__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: PySide2.QtCore.QDateTime) -> int msecsTo(self, arg__1: PySide2.QtCore.QDateTime) -> int [extrait de msecsTo.__doc__]
offsetFromUtc(self) -> int offsetFromUtc(self) -> int [extrait de offsetFromUtc.__doc__]
secsTo(self, arg__1: PySide2.QtCore.QDateTime) -> int secsTo(self, arg__1: PySide2.QtCore.QDateTime) -> int [extrait de secsTo.__doc__]
setDate(self, date: PySide2.QtCore.QDate) setDate(self, date: PySide2.QtCore.QDate) [extrait de setDate.__doc__]
setMSecsSinceEpoch(self, msecs: int) setMSecsSinceEpoch(self, msecs: int) [extrait de setMSecsSinceEpoch.__doc__]
setOffsetFromUtc(self, offsetSeconds: int) setOffsetFromUtc(self, offsetSeconds: int) [extrait de setOffsetFromUtc.__doc__]
setSecsSinceEpoch(self, secs: int) setSecsSinceEpoch(self, secs: int) [extrait de setSecsSinceEpoch.__doc__]
setTime(self, time: PySide2.QtCore.QTime) setTime(self, time: PySide2.QtCore.QTime) [extrait de setTime.__doc__]
setTime_t(self, secsSince1Jan1970UTC: int) setTime_t(self, secsSince1Jan1970UTC: int) [extrait de setTime_t.__doc__]
setTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) setTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) [extrait de setTimeSpec.__doc__]
setTimeZone(self, toZone: PySide2.QtCore.QTimeZone) setTimeZone(self, toZone: PySide2.QtCore.QTimeZone) [extrait de setTimeZone.__doc__]
setUtcOffset(self, seconds: int) setUtcOffset(self, seconds: int) [extrait de setUtcOffset.__doc__]
swap(self, other: PySide2.QtCore.QDateTime) swap(self, other: PySide2.QtCore.QDateTime) [extrait de swap.__doc__]
time(self) -> PySide2.QtCore.QTime time(self) -> PySide2.QtCore.QTime [extrait de time.__doc__]
timeSpec(self) -> PySide2.QtCore.Qt.TimeSpec timeSpec(self) -> PySide2.QtCore.Qt.TimeSpec [extrait de timeSpec.__doc__]
timeZone(self) -> PySide2.QtCore.QTimeZone timeZone(self) -> PySide2.QtCore.QTimeZone [extrait de timeZone.__doc__]
timeZoneAbbreviation(self) -> str timeZoneAbbreviation(self) -> str [extrait de timeZoneAbbreviation.__doc__]
toLocalTime(self) -> PySide2.QtCore.QDateTime toLocalTime(self) -> PySide2.QtCore.QDateTime [extrait de toLocalTime.__doc__]
toMSecsSinceEpoch(self) -> int toMSecsSinceEpoch(self) -> int [extrait de toMSecsSinceEpoch.__doc__]
toOffsetFromUtc(self, offsetSeconds: int) -> PySide2.QtCore.QDateTime toOffsetFromUtc(self, offsetSeconds: int) -> PySide2.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, f: PySide2.QtCore.Qt.DateFormat = PySide2.QtCore.Qt.DateFormat.TextDate) -> str [extrait de toString.__doc__]
toTime_t(self) -> int toTime_t(self) -> int [extrait de toTime_t.__doc__]
toTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) -> PySide2.QtCore.QDateTime toTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) -> PySide2.QtCore.QDateTime [extrait de toTimeSpec.__doc__]
toTimeZone(self, toZone: PySide2.QtCore.QTimeZone) -> PySide2.QtCore.QDateTime toTimeZone(self, toZone: PySide2.QtCore.QTimeZone) -> PySide2.QtCore.QDateTime [extrait de toTimeZone.__doc__]
toUTC(self) -> PySide2.QtCore.QDateTime toUTC(self) -> PySide2.QtCore.QDateTime [extrait de toUTC.__doc__]
utcOffset(self) -> int utcOffset(self) -> int [extrait de utcOffset.__doc__]
YearRange

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

__init_subclass__, __subclasshook__

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

__delattr__, __dir__, __format__, __getattribute__, __reduce_ex__, __setattr__, __sizeof__, __str__