my question is too generic way
see ,, long running jobs are there
i need to check how much time that job run
so how can i convert the string to integer and make evaluation
As a rule, you would use $hour for a numeric value vice ${hour} for text.
# hour=`date +%H`
# echo $hour
10
# hour_plus_10=$(($hour + 10))
# echo $hour_plus_10
20
To use the string version:
# echo "What is your ${hour}-${hour_plus_10}?"
What is your 10-20?