mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
@@ -78,8 +78,8 @@ local function getTimeUnit(value, unit)
|
|||||||
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
|
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
|
||||||
listValue = tonumber(listValue)
|
listValue = tonumber(listValue)
|
||||||
|
|
||||||
-- if current minute is less than in the expression 0,10,20,45 * * * *
|
-- e.g. if current time is less than in the expression 0,10,20,45 * * * *
|
||||||
if listValue > currentTime then
|
if listValue >= currentTime then
|
||||||
return listValue
|
return listValue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user