spiketools.utils.timestamps.convert_ms_to_min

spiketools.utils.timestamps.convert_ms_to_min(ms)[source]

Convert time value(s) from milliseconds to minutes.

Parameters:
msfloat or array

Time value(s), in milliseconds.

Returns:
float or array

Time value(s), in minutes.

Examples

Convert milliseconds to minutes:

>>> convert_ms_to_min(150000)
2.5