Skip to content

Function: isInTimeInterval()

ts
function isInTimeInterval(fromHours: number, toHours: number): boolean;

Check whether current time interval is between desired values.

Parameters

ParameterTypeDescription
fromHoursnumberLower time bound.
toHoursnumberUpper time bound.

Returns

boolean

Whether current game time is in provided time bounds.