sub parse_duration { use integer; sprintf("%02d:%02d:%02d", $_[0]/3600, $_[0]/60%60, $_[0]%60); }