#!/usr/bin/ksh
#
#

year=$(date -u '+%Y')
month=01
day=01
startdate=$year$month$day
echo $startdate

dateseconds=$(date --date "${year}-${month}-${day}" +%s)
nextseconds=$(($dateseconds+60*60*24))
nextday=$(date --date "1970-01-01 ${nextseconds} sec GMT" +%Y%m%d)

echo $nextday

#table_name=UKIA_TSBDH
#datetime="2012-01-01 13:00:00"
#result=$(epo_jpg_check_date.php $table_name $datetime)
#echo "PHP script result:"
#echo $result

exit 0
