# Analysis Period

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

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

Create an Analysis Period to describe a slice of time during the year.

### Inputs

* **start\_month**

Start month (1-12).

* **start\_day**

Start day (1-31).

* **start\_hour**

Start hour (0-23).

* **end\_month**

End month (1-12).

* **end\_day**

End day (1-31).

* **end\_hour**

End hour (0-23).

* **timestep**

An integer number for the number of time steps per hours. Acceptable inputs include: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60

### Outputs

* **period**

Analysis period.

* **hoys**

List of dates in this analysis period.

* **dates**

List of hours of the year in this analysis period.
