This commit is contained in:
narawat lamaiin
2025-04-07 05:20:05 +07:00
parent a894ad85ba
commit ccd91a7b6f

View File

@@ -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"