daily(startDate:endDate:)
Returns weather for an arbitrary range of days, with the following caveats:
Declaration
static func daily(startDate: Date, endDate: Date) -> WeatherQuery<T>Parameters
- startDate:
The lower boundary of the time range for the forecast (inclusive)
- endDate:
The upper boundary of the time range for the forecast (exclusive)
Return Value
A daily forecast query for the specified time range
Discussion
Historical data is available from Aug 1, 2021.
Forecasts are available up to 10 days in the future.
Each request will return a maximum of 10 days.
A day is included in the forecast if midnight in local time is included in the range of
startDate(inclusive) toendDate(exclusive).