PyDocs

Nav

Data Types

datetime.fromordinal

datetime

classmethod of datetime
  • datetime.fromordinal(ordinal)
Construct a date from a proleptic Gregorian ordinal.

January 1 of year 1 is day 1.  Only the year, month and day are
non-zero in the result.
0 Examples
No examples for datetime/datetime.fromordinal.
See Also
No see-alsos for datetime/datetime.fromordinal
0 Notes
No notes for datetime.fromordinal