unit

property Time.unit: str

Symbol of the unit of measurement for time. It must be a str. Available units are:

  • 'sec' for second,

  • 'min' for minute,

  • 'hour' for hour,

  • 'ms' for millisecond.

Returns

str

Symbol of the unit of measurement for time.

Raises

TypeError

If unit is not a str.

KeyError

If the unit is not among available ones.