Add method comment
This commit is contained in:
@@ -70,6 +70,11 @@ public class WeatherHelper(ISptLogger<WeatherHelper> logger, TimeUtil timeUtil,
|
||||
return time.Hour is > 21 or < 5;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is the provided hour at night, nighttime is after 2100 and before 0600
|
||||
/// </summary>
|
||||
/// <param name="currentHour">Hour to check</param>
|
||||
/// <returns>True if nighttime hour</returns>
|
||||
public bool IsHourAtNightTime(int currentHour)
|
||||
{
|
||||
return currentHour is > 21 or <= 5;
|
||||
|
||||
Reference in New Issue
Block a user