spiketools.utils.timestamps.format_time_string¶
- spiketools.utils.timestamps.format_time_string(hours, minutes, seconds)[source]¶
Format a time value into a string.
- Parameters:
- hours, minutes, secondsfloat
Time value, represented as hours, minutes, and seconds.
- Returns:
- str
A string representation of the time value.
Examples
Format a time stored as hours, minutes, and seconds into a string:
>>> format_time_string(4, 10, 20) '4.00 hours, 10.00 minutes, and 20.00 seconds.'