Array
extension Array where Element: PCCommonOpeningHours.Rules
-
Undocumented
Declaration
Swift
public func minuteTillClose(from date: Date = Date()) -> Int
-
Calculates the closed area values
[(Double, Double)]
around a given date (including the day before and day after).Note
The goal is to get closed areas of given date. This methode returns also closed areas of the day before and the day after but those might not be complete. This could be the case if the day before yesterday has over night opening hours.
Declaration
Swift
public func getClosedAreas(around date: Date) -> [(Double, Double)]
Parameters
date
The
Date
we want to know the closed areas as unix time stamps.Return Value
Array of tuple of unix time stamps where first marks start of a closed area and one
-
Undocumented
Declaration
Swift
public func getOpeningHours(for date: Date) -> POIKit.OpeningHoursValue
-
Undocumented
Declaration
Swift
public func minutesToTime(_ minutes: Int, from: Bool = false, locale: Locale? = nil) -> String