Hi,
Quote:
Originally Posted by chumpp
I'm still kinda lost so should i do when i put the code in it just turned all the time to 11.
|
Yes, it is an example with a fixed time (23). Substitute 23 with the actual time you want to use.
It seems that this line stores your time value:
Code:
time=`grep $day p2.input2|cut -d " " -f 2`
You could do something like this:
Code:
fulltime=`grep $day p2.input2|cut -d " " -f 2`
time=$(date '+%l' -d ${fulltime})
All this can probably done more elegant and resource friendly, but with the info given I cannot help in that respect.
Hope this helps.