         return time >= openingTime && time < closingTime
     }
 
-    private func date(forTime time: DateComponents, onDate date: Date) -> Date? {
+    private func getDate(forTime time: DateComponents, onDate date: Date) -> Date? {
         var timeDateComponents = dateComponents(fromDate: date)
         timeDateComponents.hour = time.hour
         timeDateComponents.minute = time.minute

    }

    func nextOpeningTime(forTime time: Date) -> String? {
        let dayOfWeek = DayOfWeek.forDate(time)
        guard let openTime = hours[dayOfWeek]?.openTime,
            let openingTime = date(forTime: openTime, onDate: time) else {
                return nil
        }


    * If the current time is after the closing time and before the opening time, the venue is closed
    **/
    func isOpen(atTime time: Date) -> Bool {
        guard let openingTime = getOpeningTime(forDate: time),
            let closingTime = getClosingTime(forDate: time) else {
            return false
        }

        // Is the current time before the opening time and the venue closed after midnight the previous day?
        if time < openingTime,
            let yesterdaysClosingTime = getClosingTime(forDate: time.addingTimeInterval(-AppConstants.ONE_DAY)),
            yesterdaysClosingTime < openingTime {

                // the venue is open if our current time is before yesterdays close time
