Skip to content

InTimeRange

Checks if the time is within the specified time range (24h format)

Argument Data Type Needed Default Description
Min number - The minimum time in hour
Max number - The maximum time in hour
UTC number false If this is true, use the UTC time to check the range

Dont need to be called every frame


Example
if InTimeRange(15, 18) then
    print("It's between 15 and 18")
end

Last update: October 31, 2022
Created: April 12, 2022