TimeUnitable
public protocol TimeUnitable
Time unit parameter requrements protocol
-
The full name of the time unit
Declaration
Swift
var longName: String { get }
-
The short name of the time unit
Declaration
Swift
var shortName: String { get }
-
Translated hours value
Declaration
Swift
func hours(_: Int) -> Hours?
-
Translated minutes value
Declaration
Swift
func minutes(_: Int) -> Minutes?
-
Translated seconds value
Declaration
Swift
func seconds(_: Int) -> Seconds?
-
Translated milliseconds value
Declaration
Swift
func milliseconds(_: Int) -> Milliseconds