I am trying to write a script which will compare the start time of a process with the current time. but I am having trouble finding the command to get the current time.
what is the format of the time?
you can get the system date with date command
I can get the date using this
RUN_DATE=`date '+%m-%y'`
but don't know how to get time
format can be HH:mm:ss (24 hours)
date +"%H:%M:%S"
15:59:35
1 Like