Trying to understand how to write this function to get a 6-day forecast for 2 days from now. Right now it returns an 8 day forecast including today. If I give it the atTime it gives me one forecast during that day. I'm using php (laravel)
$two_days_forcast = Carbon::now()->addDay(2)->timestamp;
if ($users->latitude) {
$weather = DarkSky::location($users->latitude, $users->longitude)
->atTime($two_days_forcast)
->daily();
return $weather;
Any help would be appreciated. If I don't add the ->atTime it gives me the 8 day forecast.