pandas.Timestamp.as_unit
- Timestamp.as_unit(unit, round_ok=True)
Convert the underlying int64 representaton to the given unit.
- Parameters:
- unit : {“ns”, “us”, “ms”, “s”}
- round_ok : bool, default True
If False and the conversion requires rounding, raise.
- Returns