Converts a Date object to a string.
Converts a Date object to a string.
Converts a Date object to a number.
Converts a Date object to a string or number.
The strings "number", "string", or "default" to specify what primitive to return.
A number if 'hint' was "number", a string if 'hint' was "string" or "default".
Converts a Date object to a string.
Converts a Date object to a string.
Converts a Date object to a number.
Converts a Date object to a string or number.
The strings "number", "string", or "default" to specify what primitive to return.
A number if 'hint' was "number", a string if 'hint' was "string" or "default".
Gets the day-of-the-month, using local time.
使用本地时间获取月份中的日期。
Gets the day of the week, using local time.
使用本地时间获取星期几。
Gets the year, using local time.
使用本地时间获取年份。
Gets the hours in a date, using local time.
使用本地时间获取小时数。
Gets the milliseconds of a Date, using local time.
使用本地时间获取 Date 对象中的毫秒数。
Gets the minutes of a Date object, using local time.
使用本地时间获取分钟数。
Gets the month, using local time.
使用本地时间获取月份。
Gets the seconds of a Date object, using local time.
使用本地时间获取秒数。
Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
获取时间值(以毫秒为单位)。
Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer.
获取本地计算机时间和协调世界时 (UTC) 之间的差值(以分钟为单位)。
Gets the day-of-the-month, using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取月份中的日期。
Gets the day of the week using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取星期几。
Gets the year using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取年份。
Gets the hours value in a Date object using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取 Date 对象中的小时数。
Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取 Date 对象中的毫秒数。
Gets the minutes of a Date object using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取 Date 对象中的分钟数。
Gets the month of a Date object using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取月份。
Gets the seconds of a Date object using Universal Coordinated Time (UTC).
使用协调世界时 (UTC) 获取 Date 对象中的秒数。
Sets the numeric day-of-the-month value of the Date object using local time.
A numeric value equal to the day of the month.
使用本地时间设置 Date 对象中的月份日期。
等于月份日期的数字。
Sets the year of the Date object using local time.
A numeric value for the year.
Optional
month: numberA zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
Optional
date: numberA numeric value equal for the day of the month.
使用本地时间设置 Date 对象中的年份。
等于年份的数字。
Optional
month: number可选参数,等于月份的数字。1 月为 0,其他月份依次递增。如果提供了 date
参数,则必须提供此参数。
Optional
date: number可选参数,等于月份日期的数字。
Sets the hour value in the Date object using local time.
A numeric value equal to the hours value.
Optional
min: numberA numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用本地时间设置 Date 对象中的小时数。
等于小时数的数字。
Optional
min: number可选参数,等于分钟数的数字。
Optional
sec: number可选参数,等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Sets the milliseconds value in the Date object using local time.
A numeric value equal to the millisecond value.
使用本地时间设置 Date 对象中的毫秒值。
等于毫秒值的数字。
Sets the minutes value in the Date object using local time.
A numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用本地时间设置 Date 对象中的分钟数。
等于分钟数的数字。
Optional
sec: number可选参数,等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Sets the month value in the Date object using local time.
A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
Optional
date: numberA numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
使用本地时间设置 Date 对象中的月份。
等于月份的数字。1 月为 0,其他月份依次递增。
Optional
date: number可选参数,等于月份日期的数字。如果未提供,则使用 getDate
方法的返回值。
Sets the seconds value in the Date object using local time.
A numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用本地时间设置 Date 对象中的秒数。
等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Sets the date and time value in the Date object.
A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
设置 Date 对象中的日期和时间值。
自 1970 年 1 月 1 日午夜(GMT)以来经过的毫秒数。
Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the day of the month.
使用协调世界时 (UTC) 设置 Date 对象中的月份日期。
等于月份日期的数字。
Sets the year value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the year.
Optional
month: numberA numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
Optional
date: numberA numeric value equal to the day of the month.
使用协调世界时 (UTC) 设置 Date 对象中的年份。
等于年份的数字。
Optional
month: number可选参数,等于月份的数字。1 月为 0,其他月份依次递增。如果提供了 date
参数,则必须提供此参数。
Optional
date: number可选参数,等于月份日期的数字。
Sets the hours value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the hours value.
Optional
min: numberA numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用协调世界时 (UTC) 设置 Date 对象中的小时数。
等于小时数的数字。
Optional
min: number可选参数,等于分钟数的数字。
Optional
sec: number可选参数,等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the millisecond value.
使用协调世界时 (UTC) 设置 Date 对象中的毫秒值。
等于毫秒值的数字。
Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用协调世界时 (UTC) 设置 Date 对象中的分钟数。
等于分钟数的数字。
Optional
sec: number可选参数,等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Sets the month value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
Optional
date: numberA numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
使用协调世界时 (UTC) 设置 Date 对象中的月份。
等于月份的数字。1 月为 0,其他月份依次递增。
Optional
date: number可选参数,等于月份日期的数字。如果未提供,则使用 getUTCDate
方法的返回值。
Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
使用协调世界时 (UTC) 设置 Date 对象中的秒数。
等于秒数的数字。
Optional
ms: number可选参数,等于毫秒值的数字。
Returns a date as a string value.
以字符串值返回日期。
Returns a date as a string value in ISO format.
将日期作为 ISO 格式的字符串值返回。
Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization.
Optional
key: any用于 JSON.stringify
方法,以便在将对象数据序列化为 JSON 时进行转换。
Optional
key: anyReturns a date as a string value appropriate to the host environment's current locale.
Converts a date to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a date to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
以适合主机环境当前本地化设置的字符串值返回日期。
Converts a date to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a value as a string value appropriate to the host environment's current locale.
Converts a date and time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a date and time to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
以适合主机环境当前本地化设置的字符串值返回值。
Converts a date and time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a time as a string value appropriate to the host environment's current locale.
Converts a time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a time to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
以适合主机环境当前本地化设置的字符串值返回时间。
Converts a time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a string representation of a date. The format of the string depends on the locale.
返回日期的字符串表示形式。字符串的格式取决于本地化设置。
Returns a time as a string value.
以字符串值返回时间。
Returns a date converted to a string using Universal Coordinated Time (UTC).
将日期转换为使用协调世界时 (UTC) 的字符串。
Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
返回自 1970 年 1 月 1 日午夜(UTC)以来的存储时间值(以毫秒为单位)。
Enables basic storage and retrieval of dates and times.