update
This commit is contained in:
@@ -42,6 +42,7 @@ function timedifference(starttime::DateTime, stoptime::DateTime, unit::String)::
|
|||||||
diff = stoptime - starttime
|
diff = stoptime - starttime
|
||||||
unit = lowercase(unit)
|
unit = lowercase(unit)
|
||||||
|
|
||||||
|
# Check the unit and calculate the time difference accordingly
|
||||||
if unit == "milliseconds"
|
if unit == "milliseconds"
|
||||||
return diff.value
|
return diff.value
|
||||||
elseif unit == "seconds"
|
elseif unit == "seconds"
|
||||||
|
|||||||
Reference in New Issue
Block a user