spiketools.utils.timestamps.convert_ms_to_sec

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

Convert time value(s) from milliseconds to seconds.

Parameters:
msfloat

Time value(s), in milliseconds.

Returns:
float or array

Time value(s), in seconds.

Examples

Convert milliseconds to seconds:

>>> convert_ms_to_sec(500)
0.5