Time
constructor(millis: Double)
Constructor with a parameter for milliseconds. This constructor casts the milliseconds to an int and calls a secondary constructo
Parameters
millis
the milliseconds to set the object with.
constructor(millis: Int)
A constructor that sets the time by milliseconds. The milliseconds are converted to hours, minutes, seconds and milliseconds. If the milliseconds are negative it will set isNegative to true.
Parameters
millis
the milliseconds to set.
constructor(hours: Int = 0, minutes: Int = 0, seconds: Int = 0, milliseconds: Int = 0, isNegative: Boolean = false)