boulderopalscaleup.common.Duration

class boulderopalscaleup.common.Duration(value, unit, dtype='duration')

An integer-valued time duration with an explicit unit.

Variables

  • value (int) – Numeric magnitude of the duration.
  • unit (TimeUnit) – The unit of the duration.

Methods

init
convert
from_intlike
to_nsReturn the duration converted to nanoseconds.
to_seconds

Was this useful?