# What is the difference between \`Dates.Period\` and \`Dates.TimePeriod\`?

**URL:** https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631
**Category:** New to Julia
**Created:** [October 23, 2024, 11:07am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631 "2024-10-23T11:07:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anon91151494](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@anon91151494](https://discourse.julialang.org/u/anon91151494)
#### Post date: [October 23, 2024, 11:07am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631/1 "2024-10-23T11:07:54Z")

</div>

I’m looking at this documentation page and I can’t figure out what the difference between these two types is

- [Dates · The Julia Language](https://docs.julialang.org/en/v1/stdlib/Dates/#Period-Types)

It certainly seems like there are two distinct types:

- `Dates.Period`
- `Dates.TimePeriod`

Do these two distinct types exist? If so what is the difference between them?

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [October 23, 2024, 11:38am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631/2 "2024-10-23T11:38:58Z")

</div>

```julia
help?> Dates.Period
  Period
  Year
  Quarter
  Month
  Week
  Day
  Hour
  Minute
  Second
  Millisecond
  Microsecond
  Nanosecond

  Period types represent discrete, human representations of time.

help?> Dates.TimePeriod
  TimePeriod
  Hour
  Minute
  Second
  Millisecond
  Microsecond
  Nanosecond

  Intervals of time less than a day. Conversions between all TimePeriods are permissible. (eg Hour(1) == Minute(60) == Second(3600))

```
