I have data coming from API and I want to call it and dump the data in my db every 4 hours (current day data). I used the following :
0 */4 * * *
The data in my report is missing some values, I was thinking that the cronjob is called like this :
today 00:00:00 -> should return nothing for today results
today 04:00:00 -> should return data for today
....
today 20:00:00 -> should return data for today
tomorrow 24:00:00 -> should return data for today, but this is tomorrow !
So I am thinking now of calling it like this :
today 00:00:00 -> should return nothing for today results
today 03:59:59 -> should return data for today
....
today 19:59:59 -> should return data for today
tomorrow 23:59:59 -> should return data for today, but this is tomorrow !
I am not able to achieve this cronjob. Or there is a better way ?