spiketools.utils.timestamps.split_time_value¶
- spiketools.utils.timestamps.split_time_value(sec)[source]¶
Split a time value from seconds to hours / minutes / seconds.
- Parameters:
- secfloat
Time value, in seconds.
- Returns:
- hours, minutes, secondsfloat
Time value, split up into hours, minutes, and seconds.
Examples
Split seconds into hours, minutes, and seconds:
>>> split_time_value(15000) (4, 10, 0)