You could use DateTime:
use DateTime; my $dt=DateTime->now(); print $dt->hms();
In reply to Re: Is there a better way to print time in a HH:MM:SS format than sprintf
by tirwhan
in thread Is there a better way to print time in a HH:MM:SS format than sprintf
by gargle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |