pyguymer3.convert_seconds_to_pretty_time

pyguymer3.convert_seconds_to_pretty_time(secFlt, /)[source]

Convert a value of seconds to a pretty value of time

This function reads in a value of seconds and returns the same value expressed prettily for a human to read as hours, minutes and seconds.

Parameters:

secFlt (float) – the value of seconds

Returns:

secStr – the value of seconds as a string

Return type:

float

Notes

Copyright 2017 Thomas Guymer [1]

References

Examples

>>> pyguymer3.convert_seconds_to_pretty_time(7326.311)
'2h 2m 6.3s'