printf STDOUT "former_time is %04d\n", $former_time; #### my $new_time = sprintf("%02d%02d", $new_hour, $new_mn);