I'm trying to determine the time difference between the current time and when a print job was created. I'm using the 6th field in lpstat -o to collect the time the print job was created as follows: lpstat -o returns this:
LP07-48943 root 476 Sep 21 10:49
So $6 = 10:49
If the current time (date +%H) = 12:11, how can I determine the number of seconds between the two? I've been away from this type of programming for too long and I'm running in circles. Any help or suggestions will be greatly appreciated.
BTW - the OS is SCO. (I know, I know...)
LP07-48943 root 476 Sep 21 10:49
So $6 = 10:49
If the current time (date +%H) = 12:11, how can I determine the number of seconds between the two? I've been away from this type of programming for too long and I'm running in circles. Any help or suggestions will be greatly appreciated.
BTW - the OS is SCO. (I know, I know...)