> 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/1_analyzedata/data_datetimes.md).

# Data DateTimes

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-e7c2cf3caebd36f82c8fdbcb5938b3b29ba9b8f1%2FData_DateTimes.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-e41bbe1c552b49d21fbc1811c22cf89bc97c08c8%2FData_DateTimes.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Data%20DateTimes.py)

Get the hours, days, or months of the year associated with the values of a data collection.

### Inputs

* **data \[Required]**

An hourly, daily, or monthly collection from which hours, days, or months of the year will be retrieved.

### Outputs

* **hoys**

Numbers for the, hours, days or months of the year in the data collection.
