ID EN
Datetime

fromordinal

Python 3.11

Return the date corresponding to the proleptic Gregorian ordinal, where January 1 of year 1 has ordinal 1.

Syntax

PYTHON
classmethod date.fromordinal(ordinal)

See Also

ValueError