pandas.Timestamp.ctime#
- Timestamp.ctime()#
Return a ctime() style string representing the Timestamp.
This method returns a string representing the date and time in the format returned by the standard library’s time.ctime() function, which is typically in the form ‘Day Mon DD HH:MM:SS YYYY’.
If the Timestamp is outside the range supported by Python’s standard library, a NotImplementedError is raised.
- Returns:
- str
A string representing the Timestamp in ctime format.
See also
time.ctime
Return a string representing time in ctime format.
Timestamp
Represents a single timestamp, similar to datetime.
datetime.datetime.ctime
Return a ctime style string from a datetime object.
Examples
>>> ts = pd.Timestamp('2023-01-01 10:00:00.00') >>> ts Timestamp('2023-01-01 10:00:00') >>> ts.ctime() 'Sun Jan 1 10:00:00 2023'