# Operations with time duration

**URL:** https://discourse.julialang.org/t/operations-with-time-duration/64983
**Category:** General Usage
**Tags:** dates, time
**Created:** [July 20, 2021, 1:58pm UTC](https://discourse.julialang.org/t/operations-with-time-duration/64983 "2021-07-20T13:58:31Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [July 20, 2021, 2:38pm UTC](https://discourse.julialang.org/t/operations-with-time-duration/64983/4 "2021-07-20T14:38:51Z")

</div>

Based on this [old thread](https://discourse.julialang.org/t/using-time-minutes-seconds-to-calculate-duration-of-events/14624/18):

```julia
julia> canonicalize(Dates.CompoundPeriod((Second(Hour(26)) + Second(Minute(3)) + Second(5))/5))
5 hours, 12 minutes, 37 seconds

```

---

_[View the full topic](https://discourse.julialang.org/t/operations-with-time-duration/64983)._
