@accepts(guint, guint, gboolean) @returns(utf8) def make_elapsed_time_string(elapsed, duration, show_remaining)
Constructs a string describing a playback position. The string describes hours, minutes, and seconds, and its format is localised. The string can describe either the elapsed time or the time remaining.
elapsed : |
elapsed time (in seconds) |
duration : |
duration (in seconds) |
show_remaining : |
if True, show the remaining time, otherwise show elapsed time |
Returns : |
elapsed/remaining time string |