elephant.utils.is_time_quantity

elephant.utils.is_time_quantity(*quantities, allow_none=False)[source]
Parameters:
*quantitiespq.Quantity

A scalar or array-like to check for being a Quantity with time units.

allow_nonebool, optional

Allow the input to be None or not. Default: False

Returns:
bool

Whether the input is a time Quantity (True) or not (False). If the input is None and allow_none is set to True, returns True.