# Ploting periods of time

**URL:** <https://discourse.julialang.org/t/ploting-periods-of-time/28400>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [September 5, 2019, 3:26am UTC](https://discourse.julialang.org/t/ploting-periods-of-time/28400 "2019-09-05T03:26:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rredays](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rredays](https://discourse.julialang.org/u/rredays)\
**Post date:** [September 5, 2019, 3:26am UTC](https://discourse.julialang.org/t/ploting-periods-of-time/28400/1 "2019-09-05T03:26:51Z")

</div>

Hello, I have a CSV file with a variable that is intervals of time written as HH:MM:SS, how can I import this data in a type that I can manipulate and plot?

Thank you!

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [September 5, 2019, 5:05am UTC](https://discourse.julialang.org/t/ploting-periods-of-time/28400/2 "2019-09-05T05:05:43Z")

</div>

That format can be loaded automatically using `Dates.Time`

```julia
using Dates
julia> Time("11:36:42")
11:36:42

```

Which will just work as your x axis values in Plots.jl. I’m not exactly sure about CSV import, you may need to specify the format with `CSV.File(file; dateformat="H:M:S")`. Someone else will know more about that, or read the docs for CSV.jl:

[https://juliadata.github.io/CSV.jl/stable/#DateFormat-1](https://juliadata.github.io/CSV.jl/stable/#DateFormat-1)
