Class pvr.controller.value.types.DateOnly
Represents a value that includes only the date portion, i.e. omits the time portion.
This class mimics the signature of the JavaScript Date
object omitting any deprecated
methods and any methods that pertain to the time portion.
Defined in: <pvr\controller\value\types\DateOnly.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
getDate()
Gets the day of the month according to local time.
|
|
getDay()
Gets the day of the week according to local time.
|
|
Gets the year as a 4-dijit value according to local time.
|
|
getMonth()
Gets the month 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 day of the month according to universal time.
|
|
Gets the day of the week according to universal time.
|
|
Gets the year as a 4-dijit value according to universal time.
|
|
Gets the month according to universal time.
|
|
parse(dateString)
Parses a pvr.controller.value.types.DateOnly object from the specified string.
|
|
setDate(dayValue)
Sets the day of the month according to local time.
|
|
setFullYear(yearValue, monthValue, dayValue)
Sets the year as a 4-dijit value according to local time.
|
|
setMonth(monthValue, dayValue)
Sets the month 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.
|
|
setUTCDate(dayValue)
Sets the day of the month according to universal time.
|
|
setUTCFullYear(yearValue, monthValue, dayValue)
Sets the year as a 4-dijit value according to universal time.
|
|
setUTCMonth(monthValue, dayValue)
Sets the month according to universal time.
|
|
toDate()
Converts the date to a JavaScript
Date object. |
|
Gets a string representing the date portion of the value in American English.
|
|
Gets a string representing the date in ISO 8601 Extended Format.
|
|
toJSON()
Gets a JSON representation of the date.
|
|
toLocaleDateString(locales, options)
Gets a localized string representing the date portion of the value in the current browser locale.
|
|
toLocaleString(locales, options)
Gets a localized string representing the date value in the current browser locale.
|
|
toString()
Gets a string representing the date value in American English.
|
|
Gets the string representing the date in the UTC time zone.
|
|
valueOf()
Gets the primitive value of the date.
|
Method Detail
getDate()
Gets the day of the month according to local time.
- Returns:
- The day of the month.
getDay()
Gets the day of the week according to local time.
- Returns:
- The day of the week, where Sun=0, Mon=1, etc.
getFullYear()
Gets the year as a 4-dijit value according to local time.
- Returns:
- The year as 4-dijit value.
getMonth()
Gets the month according to local time.
- Returns:
- The month, where Jan=0, Feb=1, etc.
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.
getUTCDate()
Gets the day of the month according to universal time.
- Returns:
- The day of the month.
getUTCDay()
Gets the day of the week according to universal time.
- Returns:
- The day of the week, where Sun=0, Mon=1, etc.
getUTCFullYear()
Gets the year as a 4-dijit value according to universal time.
- Returns:
- The year as 4-dijit value.
getUTCMonth()
Gets the month according to universal time.
- Returns:
- The month, where Jan=0, Feb=1, etc.
parse(dateString)
Parses a pvr.controller.value.types.DateOnly object from the specified string.
- Parameters:
- dateString
- Returns:
- The pvr.controller.value.types.DateOnly object.
setDate(dayValue)
Sets the day of the month according to local time.
- Parameters:
- dayValue
- The day of the month.
setFullYear(yearValue, monthValue, dayValue)
Sets the year as a 4-dijit value according to local time.
- Parameters:
- yearValue
- The year as a 4-dijit value.
- monthValue
- The month, where Jan=0, Feb=1, etc. (optional).
- dayValue
- The day of the month (optional).
setMonth(monthValue, dayValue)
Sets the month according to local time.
- Parameters:
- monthValue
- The month, where Jan=0, Feb=1, etc.
- dayValue
- The day of the month (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.
setUTCDate(dayValue)
Sets the day of the month according to universal time.
- Parameters:
- dayValue
- The day of the month.
setUTCFullYear(yearValue, monthValue, dayValue)
Sets the year as a 4-dijit value according to universal time.
- Parameters:
- yearValue
- The year as a 4-dijit value.
- monthValue
- The month, where Jan=0, Feb=1, etc. (optional).
- dayValue
- The day of the month (optional).
setUTCMonth(monthValue, dayValue)
Sets the month according to universal time.
- Parameters:
- monthValue
- The month, where Jan=0, Feb=1, etc.
- dayValue
- The day of the month (optional).
toDate()
Converts the date to a JavaScript
Date
object.
- Returns:
- A JavaScript
Date
object.
toDateString()
Gets a string representing the date portion of the value in American English.
- Returns:
- The string.
toISOString()
Gets a string representing the date in ISO 8601 Extended Format.
- Returns:
- The ISO string.
toJSON()
Gets a JSON representation of the date.
- Returns:
- The JSON string.
toLocaleDateString(locales, options)
Gets a localized string representing the date portion of the value in the current browser locale.
- Parameters:
- locales
- options
- Returns:
- The localized string.
toLocaleString(locales, options)
Gets a localized string representing the date value in the current browser locale.
- Parameters:
- locales
- options
- Returns:
- The localized string.
toString()
Gets a string representing the date value in American English.
- Returns:
- The string.
toUTCString()
Gets the string representing the date in the UTC time zone.
- Returns:
- The string.
valueOf()
Gets the primitive value of the date.
- Returns:
- The primitive value.