T1 compare
This commit is contained in:
parent
24a65953fe
commit
7dd57dbc61
@ -47,9 +47,9 @@ do
|
||||
|
||||
echo "($x) : SEMAINE: T0=$T0 T1=$T1 A0=$A0 B0=$B0"
|
||||
# CHECK WEEK INTERVAL
|
||||
if [[ $T0 -lt $T1 ]]; then
|
||||
echo "($x) : SEMAINE: $A <= $T0 <= $B"
|
||||
[[ $T0 -ge $A0 && $T0 -le $B0 ]] && echo "OK: ($x) $A - $B" && S=$x && break
|
||||
if [[ $T0 -le $T1 ]]; then
|
||||
echo "($x) : SEMAINE: $A <= $T1 <= $B"
|
||||
[[ $T1 -ge $A0 && $T1 -le $B0 ]] && echo "OK: ($x) $A - $B" && S=$x && break
|
||||
else
|
||||
echo "($x) : SEMAINE: $B <= $T1 <= $A"
|
||||
[[ $T1 -le $A0 && $T1 -ge $B0 ]] && echo "REVERSE: ($x) $A - $B" && S=$x && break
|
||||
|
Loading…
Reference in New Issue
Block a user