pandas.Timestamp — pandas 0.25.3 documentation (original) (raw)
astimezone(self, tz)
Convert tz-aware Timestamp to another time zone.
ceil(self, freq[, ambiguous, nonexistent])
return a new Timestamp ceiled to this resolution
combine(date, time)
date, time -> datetime with same date and time fields
ctime()
Return ctime() style string.
date()
Return date object with same year, month and day.
day_name(self[, locale])
Return the day name of the Timestamp with specified locale.
dst()
Return self.tzinfo.dst(self).
floor(self, freq[, ambiguous, nonexistent])
return a new Timestamp floored to this resolution
string -> datetime from datetime.isoformat() output
fromordinal(ordinal[, freq, tz])
passed an ordinal, translate and convert to a ts note: by definition there cannot be any tz info on the ordinal itself
fromtimestamp(ts)
timestamp[, tz] -> tz’s local time from POSIX timestamp.
Return a 3-tuple containing ISO year, week number, and weekday.
Return the day of the week represented by the date.
month_name(self[, locale])
Return the month name of the Timestamp with specified locale.
normalize(self)
Normalize Timestamp to midnight, preserving tz information.
now([tz])
Return new Timestamp object representing current time local to tz.
replace(self[, year, month, day, hour, …])
implements datetime.replace, handles nanoseconds
round(self, freq[, ambiguous, nonexistent])
Round the Timestamp to the specified resolution
strftime()
format -> strftime() style string.
strptime(string, format)
Function is not implemented.
time()
Return time object with same time but with tzinfo=None.
Return POSIX timestamp as float.
Return time tuple, compatible with time.localtime().
timetz()
Return time object with same time and tzinfo.
Return a numpy.datetime64 object with ‘ns’ precision.
to_julian_date(self)
Convert TimeStamp to a Julian Date.
to_numpy()
Convert the Timestamp to a NumPy datetime64.
to_period(self[, freq])
Return an period of which this timestamp is an observation.
Convert a Timestamp object to a native Python datetime object.
today(cls[, tz])
Return the current time in the local timezone.
Return proleptic Gregorian ordinal.
tz_convert(self, tz)
Convert tz-aware Timestamp to another time zone.
tz_localize(self, tz[, ambiguous, …])
Convert naive Timestamp to local time zone, or remove timezone from tz-aware Timestamp.
tzname()
Return self.tzinfo.tzname(self).
utcfromtimestamp(ts)
Construct a naive UTC datetime from a POSIX timestamp.
utcnow()
Return a new Timestamp representing UTC day and time.
Return self.tzinfo.utcoffset(self).
Return UTC time tuple, compatible with time.localtime().
weekday()
Return the day of the week represented by the date.