TimeUtilities¶
Utility class containing a set of time related functions.
-
aaa_modules.time_utilities.
isInTimeRange
(timeRangesString, epochSeconds=None)[source]¶ Determines if the current time is in the timeRange string.
Parameters: - timeRangesString (str) – one or multiple time range in 24-hour format. Example: ‘10-12’, or ‘6-9, 7-7, 8:30 - 14:45’, or ‘19 - 8’ (wrap around)
- epochSeconds (int) – seconds since epoch, optional
Return type: boolean
Raise: ValueError if the time range string is invalid