
# some utilities function
#
#	gruikified by tTh
#


function h2d
{
# printf "[%s]\n" $HEURE
case $HEURE in
	00 | 01 | 02 | 03 | 04 | 05 | 06 )
		DELAY=193 ; echo "D" $DELAY
		;;
	07 | 08 )
		DELAY=47 ; echo "D" $DELAY
		;;
	09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 )
		DELAY=25 ; echo "D" $DELAY
		;;
	20 | 21 )
		DELAY=30 ; echo "D" $DELAY
		;;
	22 | 23 | 24 )
		DELAY=160 ; echo "D" $DELAY
		;;
	*)
		echo "FAIL" $HEURE
		;;
esac
}

