Protected
msThe time in millisecond representation. This is the only value stored internally.
Returns the hours.
Set the hours to a specified value.
The value to set the hours to.
if the value is invalid.
Returns the milliseconds.
Set the milliseconds to a specified value.
The value to set the milliseconds to.
if the value is invalid.
Returns the minutes.
Set the minutes to a specified value.
The value to set the minutes to.
if the value is invalid.
Returns the seconds.
Set the seconds to a specified value.
The value to set the seconds to.
if the value is invalid.
Adds the specified amount of hours to the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of hours to add.
if the time becomes invalid after the operation.
Adds the specified amount of milliseconds to the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of milliseconds to add.
if the time becomes invalid after the operation.
Adds the specified amount of minutes to the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of minutes to add.
if the time becomes invalid after the operation.
Adds the specified amount of seconds to the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of seconds to add.
if the time becomes invalid after the operation.
Compares this instance to another by comparing millisecond representations.
The other Time instance to compare to.
difference for getting the difference as a new Time instance.
Subtracts the specified amount of hours from the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of hours to subtract.
if the time becomes invalid after the operation.
Subtracts the specified amount of milliseconds from the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of milliseconds to subtract.
if the time becomes invalid after the operation.
Subtracts the specified amount of minutes from the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of minutes to subtract.
if the time becomes invalid after the operation.
Subtracts the specified amount of seconds from the current time. Floating point numbers, neative values and otherwise out of bounds values are allowed unless they would cause the time to become invalid.
The amount of seconds to subtract.
if the time becomes invalid after the operation.
Generated using TypeDoc
Represents a time of day or a duration. Precision is from hours to miliseconds.