I got a problem if the time is before 10, because then the output is like 8-33-21 instead of 08-33-21. My date syntax is date +"%k-%M-%S. Does anyone know how to solve this problem?
The %kformat is space padded
From the man page
%Hhour (00..23)
%Ihour (01..12)
As fedorqui pointed out, %T is the same as %H:%M:%S
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With