# \#time

**URL:** https://discourse.julialang.org/tag/time/253.md

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

---

## [CPLEX Root node processing (before b&c) CPU Time extremely higher than JuMP Time Limit](https://discourse.julialang.org/t/cplex-root-node-processing-before-b-c-cpu-time-extremely-higher-than-jump-time-limit/109920)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 2\
**Last updated:** [August 28, 2025, 3:57pm UTC](https://discourse.julialang.org/t/cplex-root-node-processing-before-b-c-cpu-time-extremely-higher-than-jump-time-limit/109920 "2025-08-28T15:57:00Z")

</div>

I have recently switched from Gurobi to CPLEX and am very surprised I found several instances where all ticks and CPU time is spent at Root node processing and more disconcerting the total time (before B&C and root node)…

---

## [Find decimal year from time](https://discourse.julialang.org/t/find-decimal-year-from-time/126670)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 7\
**Last updated:** [March 11, 2025, 9:15am UTC](https://discourse.julialang.org/t/find-decimal-year-from-time/126670 "2025-03-11T09:15:45Z")

</div>

Hi, I’ve searched for something in libraries like Dates and AstroTime, but maybe missed it as I’m surprised not to find it. I would like to find the decimal time from a date, hour, minute, second, e.g.: DateTime(2018,…

---

## [Disassociate GC time from compile time](https://discourse.julialang.org/t/disassociate-gc-time-from-compile-time/130194)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 4\
**Last updated:** [June 26, 2025, 11:41am UTC](https://discourse.julialang.org/t/disassociate-gc-time-from-compile-time/130194 "2025-06-26T11:41:46Z")

</div>

The @timed macro provides a bunch of very interesting stats about GC and compilation time. I wanted to reuse this data to estimate the time excluding compilation and GC. However since (I believe) GC can and will happen …

---

## [How to access the monotonic "steady" clock?](https://discourse.julialang.org/t/how-to-access-the-monotonic-steady-clock/125078)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [January 23, 2025, 6:10pm UTC](https://discourse.julialang.org/t/how-to-access-the-monotonic-steady-clock/125078 "2025-01-23T18:10:31Z")

</div>

POSIX systems offer a “system clock”, represented as time since the UNIX epoch (1-1-1970), nowadays usually represented with a nanoseconds resolution. There’s also supposed to be a “monotonic clock”, also known as “stead…

---

## [Retrieve current timezone](https://discourse.julialang.org/t/retrieve-current-timezone/122763)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 11:41am UTC](https://discourse.julialang.org/t/retrieve-current-timezone/122763 "2024-11-18T11:41:36Z")

</div>

I am missing two things in Dates/TimeZones convert a unix timestamp into the computer’s local time determine the system’s timezone Maybe I missed something? For 1) I have found a solution, which could go into Dates a…

---

## [Datetime operations](https://discourse.julialang.org/t/datetime-operations/122507)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 5\
**Last updated:** [November 12, 2024, 5:56pm UTC](https://discourse.julialang.org/t/datetime-operations/122507 "2024-11-12T17:56:33Z")

</div>

How does one get a datetime column in a Dataframe to be just the time in the format of “HH:MM:SS”. Currently, those with a time entered, reads as 1899-12-30T13:00:00 and I need it to be just 13:00 The reason is that I …

---

## [Formating Dates.CompoundPeriod](https://discourse.julialang.org/t/formating-dates-compoundperiod/59167)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 6\
**Last updated:** [October 23, 2024, 11:54am UTC](https://discourse.julialang.org/t/formating-dates-compoundperiod/59167 "2024-10-23T11:54:54Z")

</div>

I have variable of type Dates.CompoundPeriod I need to change it to String in format HH:MM:SS (value will never exceed 1 hour) julia\> x = Dates.CompoundPeriod(Dates.Hour(12), Dates.Minute(13)) 12 hours, 13 minutes jul…

---

## [Timing compilation when using threads](https://discourse.julialang.org/t/timing-compilation-when-using-threads/121001)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 0\
**Last updated:** [October 7, 2024, 11:56am UTC](https://discourse.julialang.org/t/timing-compilation-when-using-threads/121001 "2024-10-07T11:56:38Z")

</div>

Is it possible to correctly measure compilation time when using Tasks on separate threads? I have tried using the 1.11 @timed but get inconsistent timings for the compilation time. I also don’t have a clear picture of …

---

## [Spinner/progress meter for slow functions](https://discourse.julialang.org/t/spinner-progress-meter-for-slow-functions/110385)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 12\
**Last updated:** [February 19, 2024, 4:04am UTC](https://discourse.julialang.org/t/spinner-progress-meter-for-slow-functions/110385 "2024-02-19T04:04:12Z")

</div>

I am aware of the package ProgressMeter.jl which works for function which process things in loops. I am looking for something that works on functions that doesn’t necessarily have loop but just takes time to complete som…

---

## [\`Type(val)\` vs \`convert(Type, val)\` (Converting more than 365 days to months and years)](https://discourse.julialang.org/t/type-val-vs-convert-type-val-converting-more-than-365-days-to-months-and-years/105684)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 14\
**Last updated:** [November 3, 2023, 1:32pm UTC](https://discourse.julialang.org/t/type-val-vs-convert-type-val-converting-more-than-365-days-to-months-and-years/105684 "2023-11-03T13:32:37Z")

</div>

I was wondering how many years were between two events. So I define the timepoints, and find their difference: julia\> using Dates julia\> d0 = Date(1980, 6, 17) 1980-06-17 julia\> d1 = Date(2015, 1, 4) 2015-01-04 julia\>…

---

## [DateTime Curiosity: Dates.epochms2datetime](https://discourse.julialang.org/t/datetime-curiosity-dates-epochms2datetime/104205)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 5\
**Last updated:** [September 25, 2023, 8:45am UTC](https://discourse.julialang.org/t/datetime-curiosity-dates-epochms2datetime/104205 "2023-09-25T08:45:08Z")

</div>

I’m new to Julia but not new to programming, and I’m wondering why Dates.epochms2datetime returned a negative value. using Dates unix\_0 = unix2datetime(0) # 1970-01-01T00:00:00 # So far, so good. Dates.value(unix\_0) #…

---

## [TimesDates.jl dev for v2](https://discourse.julialang.org/t/timesdates-jl-dev-for-v2/78377)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 44\
**Last updated:** [September 14, 2023, 3:50am UTC](https://discourse.julialang.org/t/timesdates-jl-dev-for-v2/78377 "2023-09-14T03:50:59Z")

</div>

I am working on a new version of TimesDates.jl using advancements that have become part of the Dates stdlib to simplify the implementation. Some of these improvements are accessible through non-exported specific element…

---

## [Best practice: develop and adjust own package / precompilation](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656)

<div class="topic-metadata">

**Author:** [@Lukas\_Hebing](https://discourse.julialang.org/u/Lukas_Hebing)\
**Replies:** 7\
**Last updated:** [September 8, 2023, 1:19pm UTC](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656 "2023-09-08T13:19:03Z")

</div>

A am currently using Julia for a project, which I splitted into two different packages. Each of these package has it\`s own Manifest/Project files. There is an “application” section, in which I use the functions from the…

---

## [Get unit with @benchmark or set unit to "s"](https://discourse.julialang.org/t/get-unit-with-benchmark-or-set-unit-to-s/101664)

<div class="topic-metadata">

**Author:** [@Sisisi](https://discourse.julialang.org/u/Sisisi)\
**Replies:** 1\
**Last updated:** [July 16, 2023, 1:13am UTC](https://discourse.julialang.org/t/get-unit-with-benchmark-or-set-unit-to-s/101664 "2023-07-16T01:13:47Z")

</div>

Hello, I know how to get the mean, median… about @benchmark, nonetheless, those values are given in the suitable unit (ms, µs, ns) but I need to know with Julia what is this unit. Or, else, set the unit to “second”. I …

---

## [Unix2datetime giving wrong time and date?](https://discourse.julialang.org/t/unix2datetime-giving-wrong-time-and-date/98658)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 11\
**Last updated:** [May 12, 2023, 4:52pm UTC](https://discourse.julialang.org/t/unix2datetime-giving-wrong-time-and-date/98658 "2023-05-12T16:52:18Z")

</div>

Hi I’m sure I’m missing something simple here but when I test for the time of a file that was created on 5-10-2023, I get a result julia\> unix2datetime(mtime("/Users/Desktop/Test Data 2023 5 10.numbers")) 2023-05-11T04:…

---

## [Why does \`@time\` macro allocate in a \`let\` block, a local scope?](https://discourse.julialang.org/t/why-does-time-macro-allocate-in-a-let-block-a-local-scope/97266)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [April 9, 2023, 2:15am UTC](https://discourse.julialang.org/t/why-does-time-macro-allocate-in-a-let-block-a-local-scope/97266 "2023-04-09T02:15:45Z")

</div>

The Performance Tips has a section on using @time to identify excessive allocations and reduce usage of untyped global variables. When allocations were technically eliminated, it points out that “the 1 allocation \[of 16 …

---

## [How to parse EDT time zone?](https://discourse.julialang.org/t/how-to-parse-edt-time-zone/96824)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 5:46am UTC](https://discourse.julialang.org/t/how-to-parse-edt-time-zone/96824 "2023-03-30T05:46:56Z")

</div>

For example, I have the following time “2012-01-09 12:00:10 EDT”. How do I parse it to a ZonedDateTime using TimeZones.jl? “EDT” is not a standard time zone, and tz"EDT" fails to parse. The thing is I want to make it gen…

---

## [MATLAB outperforms Julia (20 times faster) running this nested loop](https://discourse.julialang.org/t/matlab-outperforms-julia-20-times-faster-running-this-nested-loop/92691)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 20\
**Last updated:** [January 10, 2023, 2:03am UTC](https://discourse.julialang.org/t/matlab-outperforms-julia-20-times-faster-running-this-nested-loop/92691 "2023-01-10T02:03:30Z")

</div>

Hello Fellas, I am relatively new to Julia Programming. So far, Julia’s high performance has caught my attention. However, it was disappointing to see that MATLAB performs 20 times faster in executing the following prog…

---

## [Insert time in missing rows](https://discourse.julialang.org/t/insert-time-in-missing-rows/91244)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 7:42am UTC](https://discourse.julialang.org/t/insert-time-in-missing-rows/91244 "2022-12-05T07:42:36Z")

</div>

Hi i have column containts time. looks like this julia\> df.TOB 391-element SentinelArrays.ChainedVector{Union{Missing, Time}, SentinelArrays.SentinelVector{Time, Time, Missing, Vector{Time}}}: 12:30:00 12:30:00 12:…

---

## [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…

---

## [Measuring non-idle time spent in process](https://discourse.julialang.org/t/measuring-non-idle-time-spent-in-process/86832)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 8:10am UTC](https://discourse.julialang.org/t/measuring-non-idle-time-spent-in-process/86832 "2022-09-06T08:10:49Z")

</div>

Hi all! I want to measure the non-idle time spent in a given process. If I use Julia’s wall clock with time(), other processes that run on my computer (like parallel threads) will change the measurement. Judging by the …

---

## [TimeZone from latitude/longtitude](https://discourse.julialang.org/t/timezone-from-latitude-longtitude/55129)

<div class="topic-metadata">

**Author:** [@lubo](https://discourse.julialang.org/u/lubo)\
**Replies:** 7\
**Last updated:** [August 22, 2022, 3:50pm UTC](https://discourse.julialang.org/t/timezone-from-latitude-longtitude/55129 "2022-08-22T15:50:44Z")

</div>

Hi, maybe very silly question, but can not find solution so far. I have gps coordinates of the city, ie place in Stockholm/Sweden: \[59.3725,18.0\]. I would like to get TimeZone for this place: ‘Europe/Stockholm’ In py…

---

## [\[ANN\] NanoDates.jl](https://discourse.julialang.org/t/ann-nanodates-jl/84557)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 5\
**Last updated:** [July 21, 2022, 3:02am UTC](https://discourse.julialang.org/t/ann-nanodates-jl/84557 "2022-07-21T03:02:44Z")

</div>

This is to announce NanoDates, a package that lets you use nanosecond resolved dates and ISO8061 timestamps. Please see the docs for more information.

---

## [Capturing the output of \`@time\` as a String](https://discourse.julialang.org/t/capturing-the-output-of-time-as-a-string/80524)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 11:26am UTC](https://discourse.julialang.org/t/capturing-the-output-of-time-as-a-string/80524 "2022-05-05T11:26:29Z")

</div>

I would like to print the output of a @time in a production environment. To avoid cluttering up the logs, I try to keep a bit of discipline with the logging so everything should use a log level. Now my question is, how c…

---

## [How to check if date is summer time](https://discourse.julialang.org/t/how-to-check-if-date-is-summer-time/75950)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 4\
**Last updated:** [February 15, 2022, 3:44pm UTC](https://discourse.julialang.org/t/how-to-check-if-date-is-summer-time/75950 "2022-02-15T15:44:31Z")

</div>

Hi all, Didn’t find anything online and here on discourse. So here is my my question. How would I check if a date is summer or winter time? Cheers

---

## [How to get current date and time?](https://discourse.julialang.org/t/how-to-get-current-date-and-time/67221)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 2:45pm UTC](https://discourse.julialang.org/t/how-to-get-current-date-and-time/67221 "2021-08-28T14:45:19Z")

</div>

i tried this julia\> now() ERROR: UndefVarError: now not defined Stacktrace: \[1\] top-level scope @ REPL\[8\]:1

---

## [Measuring the time properly for nested for-loops with @parallel](https://discourse.julialang.org/t/measuring-the-time-properly-for-nested-for-loops-with-parallel/65841)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 2:10am UTC](https://discourse.julialang.org/t/measuring-the-time-properly-for-nested-for-loops-with-parallel/65841 "2021-08-05T02:10:15Z")

</div>

Hi, I am trying to measure the total time used to execute a nested for-loops. I used @elapsed but it seems to only return the time used by one of the inner loops. A MWE is as follows: function f(m,n) s = SharedArray…

---

## [Operations with time duration](https://discourse.julialang.org/t/operations-with-time-duration/64983)

<div class="topic-metadata">

**Author:** [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Replies:** 20\
**Last updated:** [July 22, 2021, 4:43pm UTC](https://discourse.julialang.org/t/operations-with-time-duration/64983 "2021-07-22T16:43:11Z")

</div>

I am relatively new to Julia. I don’t see a way to do the following in Julia in an easy way, like en excel… t = 1h5m2s average per Km = t/5 = 13m0s400ms Any help?

---

## [@time and @btime show different allocations](https://discourse.julialang.org/t/time-and-btime-show-different-allocations/58632)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 2\
**Last updated:** [April 5, 2021, 7:15pm UTC](https://discourse.julialang.org/t/time-and-btime-show-different-allocations/58632 "2021-04-05T19:15:26Z")

</div>

Hey Julianners, What can be the difference, that makes @time and @btime time different time in these scenarios? a, b = 6, 7 foo(a, b) = begin for i = 1:2 a, b=a + 6, b + 7+i end end @time foo(a,b) @time foo(a,b…

---

## [Dates.DateTime format in a DataFrame](https://discourse.julialang.org/t/dates-datetime-format-in-a-dataframe/57935)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 4\
**Last updated:** [March 26, 2021, 7:49am UTC](https://discourse.julialang.org/t/dates-datetime-format-in-a-dataframe/57935 "2021-03-26T07:49:34Z")

</div>

I am fetching content of the table and downloading it CSV (using LibPQ, DataFrames and CSV). This is the code converting DataFrame to CSV: executeResult = execute(conn, "SELECT \* FROM table") frame = DataFrame(executeR…

[Next page](https://discourse.julialang.org/tag/time/253.md?match_all_tags=true&page=1&tags%5B%5D=time)
