+ mes=${date:4:2}
+ validar_rango "$mes" "1" "12"
+ if [ "$?" -ne 0 ]; then
+ return 1
+ fi
+ dia=${date:6:2}
+ validar_rango "$dia" "1" "31"
+ if [ "$?" -ne 0 ]; then
+ return 1
+ fi
+ hora=${date:8:2}
+ validar_rango "$hora" "0" "23"
+ if [ "$?" -ne 0 ]; then
+ return 1
+ fi
+ min=${date:10:2}
+ validar_rango "$min" "0" "59"
+ if [ "$?" -ne 0 ]; then
+ return 1
+ fi