Class pvr.controller.value.types.TimeOnly
Represents a value that includes only the time portion, i.e. omits the date portion.
This class mimics the signature of the JavaScript Date
object omitting any deprecated
methods and any methods that pertain to the date portion.
Defined in: <pvr\controller\value\types\TimeOnly.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
getHours()
Gets the hours according to local time.
|
|
Gets the milliseconds according to local time.
|
|
Gets the minutes according to local time.
|
|
Gets the seconds according to local time.
|
|
getTime()
Gets the date value converted to numeric value equal to the number of milliseconds since 1 January 1970
00:00:00 UTC.
|
|
Gets the time zone offset from UTC in minutes.
|
|
Gets the hours according to universal time.
|
|
Gets the milliseconds according to universal time.
|
|
Gets the minutes according to universal time.
|
|
Gets the seconds according to universal time.
|
|
parse(timeString)
Parses a pvr.controller.value.types.TimeOnly object from the specified string.
|
|
setHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours according to local time.
|
|
setMilliseconds(msValue)
Sets the milliseconds according to local time.
|
|
setMinutes(minutesValue, secondsValue, msValue)
Sets the minutes according to local time.
|
|
setSeconds(secondsValue, msValue)
Sets the seconds according to local time.
|
|
setTime(timeValue)
Sets the date value from a numeric value equal to the number of milliseconds since 1 January 1970 00:00:00
UTC.
|
|
setUTCHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours according to universal time.
|
|
setUTCMilliseconds(msValue)
Sets the milliseconds according to universal time.
|
|
setUTCMinutes(minutesValue, secondsValue, msValue)
Sets the minutes according to universal time.
|
|
setUTCSeconds(secondsValue, msValue)
Sets the seconds according to universal time.
|
|
toDate()
Converts the time to a JavaScript
Date object. |
|
Gets a string representing the time in ISO 8601 Extended Format.
|
|
toJSON()
Gets a JSON representation of the time.
|
|
toLocaleString(locales, options)
Gets a localized string representing the time value in the current browser locale.
|
|
toLocaleTimeString(locales, options)
Gets a localized string representing the time portion of the value in the current browser locale.
|
|
toString()
Gets a string representing the time value in American English.
|
|
Gets a string representing the time portion of the value in American English.
|
|
Gets the string representing the time in the UTC time zone.
|
|
valueOf()
Gets the primitive value of the time.
|
Method Detail
getHours()
Gets the hours according to local time.
- Returns:
- The hours.
getMilliseconds()
Gets the milliseconds according to local time.
- Returns:
- The milliseconds.
getMinutes()
Gets the minutes according to local time.
- Returns:
- The minutes.
getSeconds()
Gets the seconds according to local time.
- Returns:
- The seconds.
getTime()
Gets the date value converted to numeric value equal to the number of milliseconds since 1 January 1970
00:00:00 UTC.
- Returns:
- The numeric value.
getTimezoneOffset()
Gets the time zone offset from UTC in minutes.
- Returns:
- The time zone offset.
getUTCHours()
Gets the hours according to universal time.
- Returns:
- The hours.
getUTCMilliseconds()
Gets the milliseconds according to universal time.
- Returns:
- The milliseconds.
getUTCMinutes()
Gets the minutes according to universal time.
- Returns:
- The minutes.
getUTCSeconds()
Gets the seconds according to universal time.
- Returns:
- The seconds.
parse(timeString)
Parses a pvr.controller.value.types.TimeOnly object from the specified string.
- Parameters:
- timeString
- Returns:
- The pvr.controller.value.types.TimeOnly object.
setHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours according to local time.
- Parameters:
- hoursValue
- The hours.
- minutesValue
- The minutes (optional).
- secondsValue
- The seconds (optional).
- msValue
- The milliseconds (optional).
setMilliseconds(msValue)
Sets the milliseconds according to local time.
- Parameters:
- msValue
- The milliseconds.
setMinutes(minutesValue, secondsValue, msValue)
Sets the minutes according to local time.
- Parameters:
- minutesValue
- The minutes.
- secondsValue
- The seconds (optional).
- msValue
- The milliseconds (optional).
setSeconds(secondsValue, msValue)
Sets the seconds according to local time.
- Parameters:
- secondsValue
- The seconds.
- msValue
- The milliseconds (optional).
setTime(timeValue)
Sets the date value from a numeric value equal to the number of milliseconds since 1 January 1970 00:00:00
UTC.
- Parameters:
- timeValue
- The numeric value.
setUTCHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours according to universal time.
- Parameters:
- hoursValue
- The hours.
- minutesValue
- The minutes (optional).
- secondsValue
- The seconds (optional).
- msValue
- The milliseconds (optional).
setUTCMilliseconds(msValue)
Sets the milliseconds according to universal time.
- Parameters:
- msValue
- The milliseconds.
setUTCMinutes(minutesValue, secondsValue, msValue)
Sets the minutes according to universal time.
- Parameters:
- minutesValue
- The minutes.
- secondsValue
- The seconds (optional).
- msValue
- The milliseconds (optional).
setUTCSeconds(secondsValue, msValue)
Sets the seconds according to universal time.
- Parameters:
- secondsValue
- The seconds.
- msValue
- The milliseconds (optional).
toDate()
Converts the time to a JavaScript
Date
object.
- Returns:
- A JavaScript
Date
object.
toISOString()
Gets a string representing the time in ISO 8601 Extended Format.
- Returns:
- The ISO string.
toJSON()
Gets a JSON representation of the time.
- Returns:
- The JSON string.
toLocaleString(locales, options)
Gets a localized string representing the time value in the current browser locale.
- Parameters:
- locales
- options
- Returns:
- The localized string.
toLocaleTimeString(locales, options)
Gets a localized string representing the time portion of the value in the current browser locale.
- Parameters:
- locales
- options
- Returns:
- The localized string.
toString()
Gets a string representing the time value in American English.
- Returns:
- The string.
toTimeString()
Gets a string representing the time portion of the value in American English.
- Returns:
- The string.
toUTCString()
Gets the string representing the time in the UTC time zone.
- Returns:
- The string.
valueOf()
Gets the primitive value of the time.
- Returns:
- The primitive value.