woom.util.WoomDate.isoformat#
- WoomDate.isoformat(sep: str = 'T', timespec: str = 'auto') str#
Return the time formatted according to ISO 8601.
The full format looks like ‘YYYY-MM-DD HH:MM:SS.mmmmmmnnn’. By default, the fractional part is omitted if self.microsecond == 0 and self._nanosecond == 0.
If self.tzinfo is not None, the UTC offset is also attached, giving a full format of ‘YYYY-MM-DD HH:MM:SS.mmmmmmnnn+HH:MM’.
- Parameters:
- Return type:
See also
Timestamp.strftimeReturn a formatted string.
Timestamp.isocalendarReturn a tuple containing ISO year, week number and weekday.
Examples
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') >>> ts.isoformat() '2020-03-14T15:32:52.192548651' >>> ts.isoformat(timespec='microseconds') '2020-03-14T15:32:52.192548'