spiketools.utils.timestamps.convert_sec_to_min

spiketools.utils.timestamps.convert_sec_to_min(sec)[source]

Convert time value(s) from seconds to minutes.

Parameters:
secfloat or array

Time value(s), in seconds.

Returns:
float or array

Time value(s), in minutes.

Examples

Convert seconds to minutes:

>>> convert_sec_to_min(210)
3.5