Structurefwcd.swift-utils 4.6.2Utils
Time
Represents a time, independent of the date. Often viewed as an hour-minute-second tuple.
struct Time
Represents a time, independent of the date. Often viewed as an hour-minute-second tuple.
struct Time
import Utils
init?(hour: Int, minute: Int, second: Int = 0)
let hour: Int
let minute: Int
var minuteOfDay: Int { get }
let second: Int
var secondOfDay: Int { get }
func hours(to other: Time) -> Int
func minutes(to other: Time) -> Int
func seconds(to other: Time) -> Int
func timeInterval(to other: Time) -> TimeInterval