to_int

function of dascore.utils.time source

to_int(
    obj: int | float | str | numpy.datetime64 | pandas._libs.tslibs.timestamps.Timestamp | numpy.ndarray[int, float, str, datetime64, Timestamp, ndarray] ,
)-> ‘np.ndarray’

Ensure a scalar or array is a number.

If the input values represents a time or a time-delta, convert it to a an int representing ns.