TimeOfDayRange

public struct TimeOfDayRange : Hashable

Time period when the tariff element is valid, in local time. The time period wraps around to the next day, when end time of the period TimeOfDayRange.to is smaller than the beginning TimeOfDayRange.from.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • Start time of day, in hh:mm:ss format.

    Declaration

    Swift

    public var from: String
  • to

    End time of day, in hh:mm:ss format. The period is exclusive of the given value.

    Declaration

    Swift

    public var to: String
  • Creates a new instance.

    Declaration

    Swift

    public init(from: String = "00:00:00", to: String = "00:00:00")