I’m trying to find a way to get date and time separately. For date I can do:
date -u +%d/%m/%Y
What should I do to find the time in the following format?
hh/mm/ss
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The date command can give you the time part as well. Check out the man page (or type
man dateon your command line) for more details.Or to meet your formatting requirement of HH/MM/SS: