From ccd91a7b6f9d8855277ca6a2775eeaf6ef169b23 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Mon, 7 Apr 2025 05:20:05 +0700 Subject: [PATCH] update --- src/util.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.jl b/src/util.jl index 682f6c3..a70e985 100644 --- a/src/util.jl +++ b/src/util.jl @@ -42,6 +42,7 @@ function timedifference(starttime::DateTime, stoptime::DateTime, unit::String):: diff = stoptime - starttime unit = lowercase(unit) + # Check the unit and calculate the time difference accordingly if unit == "milliseconds" return diff.value elseif unit == "seconds"