Is there anyone familiar enough with bash that could indicate what I would search for if I wanted to calculate the integer value (Unix time) of the current day in order to calculate or at least be within a few seconds the beginning of the day? I have a bash script that is ram every day at the same time, it downloads data for a 24 hour period, but its crossing to the previous day. My plan would be to run the script for yesterday today since it runs 4 hours before the end of today.