pandas.Timestamp.fromordinal

classmethod Timestamp.fromordinal(ordinal, freq=None, tz=None)

Passed an ordinal, translate and convert to a ts. Note: by definition there cannot be any tz info on the ordinal itself.

Parameters
ordinalint

Date corresponding to a proleptic Gregorian ordinal.

freqstr, DateOffset

Offset to apply to the Timestamp.

tzstr, pytz.timezone, dateutil.tz.tzfile or None

Time zone for the Timestamp.