> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/ladybug-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/ladybug-primer/components/4_extra/time_aggregate.md).

# Time Aggregate

![](/files/-Mihil0Ojz0gfqF_8vL6)

![](/files/-Mihil0PJZfQN1hc_z7m) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Time%20Aggregate.py)

Convert a DataCollection of point-in-time values to its time-aggregated equivalent.

For example, if the collection has a Power data type in W, this method will return a collection with an Energy data type in kWh.

### Inputs

* **data \[Required]**

A houry, sub-hourly or daily data collection that can be aggregated over time to yield data of a different metric. (eg. a data collection of Power values in W).

### Outputs

* **data\_aggr**

The data collection aggregated over time. (eg. a data collection of Energy values in kWh).
