#!/bin/bash
CHOISE=99
ARR_SIZE=6
ZONES=(
Alaska		Eastern		Hawaii 
Pacific		Central		Mountain 
	)
until [ $CHOISE -gt 0 ] && [ $CHOISE -le $ARR_SIZE ]
do
echo "Please select your location so that time zone rules can be set correctly."
echo "************************************************************************"
for (( i=0; i< $ARR_SIZE; i++ ))
	do
	j=`expr $i + 1`
	echo "$j) ${ZONES[$i]}"
	done

read CHOISE
done
echo "Please enter your local time using the following format:"
echo "<Day in week> <Month/Day in month/year> <hour:minutes:seconds>"
echo "For examle: Mon 5/27/05 13:00:00 "
read LOCALTIME


zic -l /usr/share/zoneinfo/US/${ZONES[$CHOISE - 1 ]}
date -s "$LOCALTIME"




