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 « QDate »

Informations générales

Héritage

builtins.object
    Object
        QDate

Définition

class QDate(Object):

Description [extrait de QDate.__doc__]

QDate(self)
QDate(self, QDate: PySide2.QtCore.QDate)
QDate(self, y: int, m: int, d: int)
QDate(self, y: int, m: int, d: int, cal: PySide2.QtCore.QCalendar)

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 attributs statiques

Nom de l'attribut Valeur
DateFormatPySide2.QtCore.QDate.MonthNameType.DateFormat
StandaloneFormatPySide2.QtCore.QDate.MonthNameType.StandaloneFormat

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__]
__getattribute__(self, name) Return getattr(self, name). [extrait de __getattribute__.__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.QDate addDays(self, days: int) -> PySide2.QtCore.QDate [extrait de addDays.__doc__]
addMonths addMonths(self, months: int) -> PySide2.QtCore.QDate [extrait de addMonths.__doc__]
addYears addYears(self, years: int) -> PySide2.QtCore.QDate [extrait de addYears.__doc__]
currentDate() -> PySide2.QtCore.QDate currentDate() -> PySide2.QtCore.QDate [extrait de currentDate.__doc__]
day day(self) -> int [extrait de day.__doc__]
dayOfWeek dayOfWeek(self) -> int [extrait de dayOfWeek.__doc__]
dayOfYear dayOfYear(self) -> int [extrait de dayOfYear.__doc__]
daysInMonth daysInMonth(self) -> int [extrait de daysInMonth.__doc__]
daysInYear daysInYear(self) -> int [extrait de daysInYear.__doc__]
daysTo(self, arg__1: PySide2.QtCore.QDate) -> int daysTo(self, arg__1: PySide2.QtCore.QDate) -> int [extrait de daysTo.__doc__]
endOfDay endOfDay(self, spec: PySide2.QtCore.Qt.TimeSpec = PySide2.QtCore.Qt.TimeSpec.LocalTime, offsetSeconds: int = 0) -> PySide2.QtCore.QDateTime [extrait de endOfDay.__doc__]
fromJulianDay(jd_: int) -> PySide2.QtCore.QDate fromJulianDay(jd_: int) -> PySide2.QtCore.QDate [extrait de fromJulianDay.__doc__]
fromString fromString(s: str, f: PySide2.QtCore.Qt.DateFormat = PySide2.QtCore.Qt.DateFormat.TextDate) -> PySide2.QtCore.QDate [extrait de fromString.__doc__]
getDate(self) -> typing.Tuple[int, int, int] getDate(self) -> typing.Tuple[int, int, int] [extrait de getDate.__doc__]
isLeapYear(year: int) -> bool isLeapYear(year: int) -> bool [extrait de isLeapYear.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isValid isValid() -> bool [extrait de isValid.__doc__]
longDayName(weekday: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str longDayName(weekday: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str [extrait de longDayName.__doc__]
longMonthName(month: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str longMonthName(month: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str [extrait de longMonthName.__doc__]
month month(self) -> int [extrait de month.__doc__]
MonthNameType
setDate setDate(self, year: int, month: int, day: int) -> bool [extrait de setDate.__doc__]
shortDayName(weekday: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str shortDayName(weekday: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str [extrait de shortDayName.__doc__]
shortMonthName(month: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str shortMonthName(month: int, type: PySide2.QtCore.QDate.MonthNameType = PySide2.QtCore.QDate.MonthNameType.DateFormat) -> str [extrait de shortMonthName.__doc__]
startOfDay startOfDay(self, spec: PySide2.QtCore.Qt.TimeSpec = PySide2.QtCore.Qt.TimeSpec.LocalTime, offsetSeconds: int = 0) -> PySide2.QtCore.QDateTime [extrait de startOfDay.__doc__]
toJulianDay(self) -> int toJulianDay(self) -> int [extrait de toJulianDay.__doc__]
toPython(self) -> object toPython(self) -> object [extrait de toPython.__doc__]
toString toString(self, f: PySide2.QtCore.Qt.DateFormat, cal: PySide2.QtCore.QCalendar) -> str [extrait de toString.__doc__]
weekNumber(self) -> typing.Tuple[int, int] weekNumber(self) -> typing.Tuple[int, int] [extrait de weekNumber.__doc__]
year year(self) -> int [extrait de year.__doc__]

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

__init_subclass__, __subclasshook__

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

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