# How to convert period in milisecond to minutes / seconds , hour etc

**URL:** https://discourse.julialang.org/t/how-to-convert-period-in-milisecond-to-minutes-seconds-hour-etc/2423
**Category:** New to Julia
**Tags:** dates, convert
**Created:** [March 3, 2017, 12:40pm UTC](https://discourse.julialang.org/t/how-to-convert-period-in-milisecond-to-minutes-seconds-hour-etc/2423 "2017-03-03T12:40:45Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [October 8, 2019, 12:49pm UTC](https://discourse.julialang.org/t/how-to-convert-period-in-milisecond-to-minutes-seconds-hour-etc/2423/14 "2019-10-08T12:49:18Z")

</div>

You can do

```julia
Dates.toms(t) / Dates.toms(Minute(1))

```

using the undocumented `Dates.toms` function to convert time periods to floating-point milliseconds.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-convert-period-in-milisecond-to-minutes-seconds-hour-etc/2423)._
