# now="$(date -d '2014-01-21 23:56:00' +%s)"
now="$(date +%s)"
-delta="0"
+delta="86400"
to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 + $delta" | bc))"
from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 - (86400) + $delta" | bc))"