Not that I can see. What are you looking to accomplish?
I think an alternative would be to strip the first field from the output uptime | cut -wf2- and then prepend the date in the format that you want it date +%H:%M:%S and put it all together using 'echo': echo $(date +%H:%M:%S) $(uptime | cut -wf2-)
or echo $(date +%H:%M:%S ; uptime | cut -wf2-)
I live in europe and I don't like the AM/PM.
Considering you can set time zone, it would make perfect sense to uptime (and maybe some other times across the system if it's not the only place) to be shown in format relevant to selected region.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.