# \#timeperiod

**URL:** https://discourse.julialang.org/tag/timeperiod/979.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to Print/Parse a TimePeriod with a Specific Format?](https://discourse.julialang.org/t/how-to-print-parse-a-timeperiod-with-a-specific-format/78322)

<div class="topic-metadata">

**Author:** [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Replies:** 9\
**Last updated:** [January 26, 2026, 3:41am UTC](https://discourse.julialang.org/t/how-to-print-parse-a-timeperiod-with-a-specific-format/78322 "2026-01-26T03:41:12Z")

</div>

Hi! I want to parse and print durations in the format "HH:MM:SS.sss". Parsing seems to be pretty simple. if I do for example julia\> str = "1:02:23.234" "1:02:23.234" julia\> t = Time(str) 01:02:23.234 this seems to wor…

---

## [Estimating time periods of oscillators](https://discourse.julialang.org/t/estimating-time-periods-of-oscillators/108791)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 13\
**Last updated:** [January 16, 2024, 2:57pm UTC](https://discourse.julialang.org/t/estimating-time-periods-of-oscillators/108791 "2024-01-16T14:57:09Z")

</div>

As the title says, I want to estimate the time periods of a certain kind of oscillation that comes out of an ODE solution: This behaviour has a large period among other smaller ones (in this image, the time period of…

---

## [Customizing Output Units of Dates.canonicalize](https://discourse.julialang.org/t/customizing-output-units-of-dates-canonicalize/90569)

<div class="topic-metadata">

**Author:** [@notaprogrammer](https://discourse.julialang.org/u/notaprogrammer)\
**Replies:** 4\
**Last updated:** [November 21, 2022, 12:30pm UTC](https://discourse.julialang.org/t/customizing-output-units-of-dates-canonicalize/90569 "2022-11-21T12:30:36Z")

</div>

Working on some exercises to learn programming and Julia, and I am attempting to calculate my little one’s age. I see that Julia does almost all of the work compared to the solution I wrote yesterday in Perl where I had…

---

## [Splitting time periods in a DataFrame](https://discourse.julialang.org/t/splitting-time-periods-in-a-dataframe/89268)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 10\
**Last updated:** [October 29, 2022, 10:10am UTC](https://discourse.julialang.org/t/splitting-time-periods-in-a-dataframe/89268 "2022-10-29T10:10:52Z")

</div>

I have a DataFrame with episodes of exposure of the form: PersonId::Int64 DateOfBirth::Date Sex::Int64 StartDate::Date EndDate::Date I would like to split each record on January 1, of each calendar year between :Start…

---

## [Round Dates.Time variable](https://discourse.julialang.org/t/round-dates-time-variable/88306)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 7\
**Last updated:** [October 6, 2022, 5:46pm UTC](https://discourse.julialang.org/t/round-dates-time-variable/88306 "2022-10-06T17:46:43Z")

</div>

Hi, I am trying to round two variables - say X and Y - of type Dates.Time. X has value 09:30:01.017, Y has value 09:59:59.103 and I would like to round them to 09:30:00.000 and 10:00:00.000. I have tried using floor and…

---

## [Simple conversion from Time to Period?](https://discourse.julialang.org/t/simple-conversion-from-time-to-period/81781)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 10\
**Last updated:** [May 27, 2022, 10:01pm UTC](https://discourse.julialang.org/t/simple-conversion-from-time-to-period/81781 "2022-05-27T22:01:23Z")

</div>

I could do Time(12).instant, but that is probably not good practice. Doing Time(12) - Time(0) seems odd. Is there some proper way to convert Time to Period? One thing that motivates this question is that I want to calcu…
