ensure_time#

composer.core.ensure_time(maybe_time, int_unit)[source]#

Ensure maybe_time is an instance of Time.

Parameters
  • maybe_time (Time | str) โ€“ A time string, integer, or instance of Time.

  • int_unit (TimeUnit | str) โ€“ The unit to use if maybe_time is an integer

Returns

Time โ€“ An instance of Time.