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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « datetime » Python 3.13.2

Classe « date »

Informations générales

Héritage

builtins.object
    date

Définition

class date(builtins.object):

help(date)

date(year, month, day) --> date object

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
day<attribute 'day' of 'datetime.date' objects>
max9999-12-31
min0001-01-01
month<attribute 'month' of 'datetime.date' objects>
resolution1 day, 0:00:00
year<attribute 'year' of 'datetime.date' objects>

Liste des opérateurs

Signature de l'opérateur Description
__add__(self, value) Return self+value. [extrait de __add__.__doc__]
__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__]
__radd__(self, value) Return value+self. [extrait de __radd__.__doc__]
__rsub__(self, value) Return value-self. [extrait de __rsub__.__doc__]
__sub__(self, value) Return self-value. [extrait de __sub__.__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
__format__ Formats self with strftime. [extrait de __format__.__doc__]
__hash__(self) Return hash(self). [extrait de __hash__.__doc__]
__reduce__(self) __reduce__() -> (cls, state) [extrait de __reduce__.__doc__]
__replace__(self, /, **changes) The same as replace(). [extrait de __replace__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
__str__(self) Return str(self). [extrait de __str__.__doc__]
ctime(self) Return ctime() style string. [extrait de ctime.__doc__]
fromisocalendar int, int, int -> Construct a date from the ISO year, week number and weekday. [extrait de fromisocalendar.__doc__]
fromisoformat(object) str -> Construct a date from a string in ISO 8601 format. [extrait de fromisoformat.__doc__]
fromordinal int -> date corresponding to a proleptic Gregorian ordinal. [extrait de fromordinal.__doc__]
fromtimestamp(timestamp) Create a date from a POSIX timestamp. [extrait de fromtimestamp.__doc__]
isocalendar(self) Return a named tuple containing ISO year, week number, and weekday. [extrait de isocalendar.__doc__]
isoformat(self) Return string in ISO 8601 format, YYYY-MM-DD. [extrait de isoformat.__doc__]
isoweekday(self) Return the day of the week represented by the date. [extrait de isoweekday.__doc__]
replace Return date with new specified fields. [extrait de replace.__doc__]
strftime format -> strftime() style string. [extrait de strftime.__doc__]
timetuple(self) Return time tuple, compatible with time.localtime(). [extrait de timetuple.__doc__]
today() Current date or datetime: same as self.__class__.fromtimestamp(time.time()). [extrait de today.__doc__]
toordinal(self) Return proleptic Gregorian ordinal. January 1 of year 1 is day 1. [extrait de toordinal.__doc__]
weekday(self) Return the day of the week represented by the date. [extrait de weekday.__doc__]

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

__delattr__, __dir__, __getattribute__, __getstate__, __init_subclass__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé