<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/HourlyWeatherStatistics",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit06HourlyA10StatisticsV"
  },
  "title" : "HourlyWeatherStatistics"
}
-->

# HourlyWeatherStatistics

A structure that holds a collection of hour weather statistics data.

```
struct HourlyWeatherStatistics<T> where T : Decodable, T : Encodable, T : Equatable, T : Sendable
```

## Overview

Weather statistics for each hour are derived from data for that hour, collected over all years since the baseline start date.

## Topics

### Instance Properties

[`var baselineStartDate: Date`](/documentation/WeatherKit/HourlyWeatherStatistics/baselineStartDate)

The date when the statistics collection began.

[`var endIndex: HourlyWeatherStatistics<T>.Index`](/documentation/WeatherKit/HourlyWeatherStatistics/endIndex)

The end index for the hourly weather statistics.

[`var hours: [T]`](/documentation/WeatherKit/HourlyWeatherStatistics/hours)

An ordered collection of hour weather statistics data of type `T`, for each requested hour.

[`var metadata: WeatherMetadata`](/documentation/WeatherKit/HourlyWeatherStatistics/metadata)

Descriptive information about the weather statistics data.

[`var startIndex: HourlyWeatherStatistics<T>.Index`](/documentation/WeatherKit/HourlyWeatherStatistics/startIndex)

The start index for the hourly weather statistics.

### Subscripts

[`subscript(HourlyWeatherStatistics<T>.Index) -> HourlyWeatherStatistics<T>.Element`](/documentation/WeatherKit/HourlyWeatherStatistics/subscript(_:))

The hour weather statistics at the provided index.

## Relationships

### Conforms To

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Collection`](/documentation/Swift/Collection)

[`Sequence`](/documentation/Swift/Sequence)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`Encodable`](/documentation/Swift/Encodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)