View Single Post
Posts: 10 | Thanked: 29 times | Joined on Jun 2010 @ Germany
#8
Originally Posted by impeham View Post
Thanks - works great, but how can i add support for an exact hour with minutes - something like between 16:30 - 18:30?

Is there a place where it is explained how to manipulate this data?
Code:
hr=`date +%H%M`
You'll have to change the if condition to
Code:
if test $hr -ge 1630 -a $hr -lt 1830
If you have the man pages installed (see here) you can use man date to get an explanation. date --help would be another option, but on maemo this is extremely short. The man pages can be referenced online on various sites throughout the net, e.g. here.
 

The Following User Says Thank You to Obsidian For This Useful Post: