?uem/p1-90`Number
extends clause의 value로 사용될 수 있습니다. specified Number behaviour를 inherit하려는 subclass super call을 include해야 합니다.이 function은 called될 때 다음 step을 수행합니다:
Number
Number.EPSILON의 value는 Number value로 represent 가능한 1보다 큰 smallest value와 1 사이의 difference의 magnitude에 대한 Number value이며, 이는 approximately 2.2204460492503130808472633361816 × 10-16입니다.
이 property는 attributes { [[Writable]]:
이 function은 called될 때 다음 step을 수행합니다:
이 function은 called될 때 다음 step을 수행합니다:
이 function은 called될 때 다음 step을 수행합니다:
이 function은 argument가
이 function은 called될 때 다음 step을 수행합니다:
Number.MAX_SAFE_INTEGER보다 큰 every 9007199254740992와 9007199254740993 둘 다 Number value
Number.MAX_SAFE_INTEGER의 value는
이 property는 attributes { [[Writable]]:
Number.MAX_VALUE의 value는
이 property는 attributes { [[Writable]]:
Number.MIN_SAFE_INTEGER보다 작은 every -9007199254740992와 -9007199254740993 둘 다 Number value
Number.MIN_SAFE_INTEGER의 value는
이 property는 attributes { [[Writable]]:
Number.MIN_VALUE의 value는
Number.MIN_VALUE의 value는 implementation에 의해 actually represented될 수 있는 smallest non-zero positive value여야 합니다.
이 property는 attributes { [[Writable]]:
Number.NaN의 value는
이 property는 attributes { [[Writable]]:
Number.NEGATIVE_INFINITY의 value는
이 property는 attributes { [[Writable]]:
Number.POSITIVE_INFINITY의 value는
이 property는 attributes { [[Writable]]:
Number.prototype의 initial value는
이 property는 attributes { [[Writable]]:
Number prototype object는:
explicitly 달리 stated되지 않는 한, 아래에 defined된 Number prototype object의 method는 generic하지 않고, 이들에게 passed되는
method specification 안의 phrase “this Number value”는 method invocation의
Number.prototype.constructor의 initial value는
이 method는 significand의 decimal point 앞에 one digit, significand의 decimal point 뒤에 fractionDigits digits를 가진 decimal exponential notation으로 represented된 this Number value를 contain하는 String을 반환합니다. fractionDigits가
called될 때 다음 step을 수행합니다:
above rules에 의해 required되는 것보다 more accurate conversion을 provide하는 implementation의 경우, step
이 method는 decimal point 뒤에 fractionDigits digits를 가진 decimal fixed-point notation으로 represented된 this Number value를 contain하는 String을 반환합니다. fractionDigits가
called될 때 다음 step을 수행합니다:
toString은 adjacent Number value와 number를 distinguish하기에 enough significant digits만 print하므로, some value에 대해 toFixed의 output은 toString보다 more precise할 수 있습니다. 예를 들어,
(1000000000000000128).toString()은
(1000000000000000128).toFixed(0)은
ECMA-402 Internationalization API를 include하는 ECMAScript implementation은 ECMA-402 specification에 specified된 대로 이 method를 implement해야 합니다. ECMAScript implementation이 ECMA-402 API를 include하지 않으면 이 method의 다음 specification이 사용됩니다:
이 method는 toString과 same thing을 return하는 것이 permissible하지만 encouraged되지는 않습니다.
이 method의 optional parameter의 meaning은 ECMA-402 specification에 defined되어 있습니다; ECMA-402 support를 include하지 않는 implementation은 those parameter position을 anything else에 사용해서는 안 됩니다.
이 method는 significand의 decimal point 앞에 one digit, significand의 decimal point 뒤에
called될 때 다음 step을 수행합니다:
optional radix는
이 method는 called될 때 다음 step을 수행합니다:
이 method는 generic하지 않습니다;
이 method의
The abstract operation ThisNumberValue takes argument arg (an
Number instance는
BigInt
new operator와 함께 사용되거나 subclassed되도록 intended되지 않습니다. class definition의 extends clause의 value로 사용될 수 있지만 BigInt super call은 exception을 cause합니다.이 function은 called될 때 다음 step을 수행합니다:
The abstract operation NumberToBigInt takes argument number (a Number) and returns either a
BigInt
이 function은 called될 때 다음 step을 수행합니다:
이 function은 called될 때 다음 step을 수행합니다:
BigInt.prototype의 initial value는
이 property는 attributes { [[Writable]]:
BigInt prototype object는:
method specification 안의 phrase “this BigInt value”는 method invocation의
BigInt.prototype.constructor의 initial value는
ECMA-402 Internationalization API를 include하는 ECMAScript implementation은 ECMA-402 specification에 specified된 대로 이 method를 implement해야 합니다. ECMAScript implementation이 ECMA-402 API를 include하지 않으면 이 method의 다음 specification이 사용됩니다:
이 method는 toString과 same thing을 return하는 것이 permissible하지만 encouraged되지는 않습니다.
이 method의 optional parameter의 meaning은 ECMA-402 specification에 defined되어 있습니다; ECMA-402 support를 include하지 않는 implementation은 those parameter position을 anything else에 사용해서는 안 됩니다.
optional radix는
이 method는 called될 때 다음 step을 수행합니다:
이 method는 generic하지 않습니다;
The abstract operation ThisBigIntValue takes argument arg (an
이 property는 attributes { [[Writable]]:
BigInt instance는
Math object는:
new operator와 함께 이 specification에서 phrase “the
natural logarithm의 base인 e에 대한 Number value이며, 이는 approximately 2.7182818284590452354입니다.
이 property는 attributes { [[Writable]]:
10의 natural logarithm에 대한 Number value이며, 이는 approximately 2.302585092994046입니다.
이 property는 attributes { [[Writable]]:
2의 natural logarithm에 대한 Number value이며, 이는 approximately 0.6931471805599453입니다.
이 property는 attributes { [[Writable]]:
natural logarithm의 base인 e의 base-10 logarithm에 대한 Number value입니다; 이 value는 approximately 0.4342944819032518입니다.
이 property는 attributes { [[Writable]]:
Math.LOG10E의 value는 Math.LN10의 value의 reciprocal에 approximate합니다.
natural logarithm의 base인 e의 base-2 logarithm에 대한 Number value입니다; 이 value는 approximately 1.4426950408889634입니다.
이 property는 attributes { [[Writable]]:
Math.LOG2E의 value는 Math.LN2의 value의 reciprocal에 approximate합니다.
circle의 circumference와 diameter의 ratio인 π에 대한 Number value이며, 이는 approximately 3.1415926535897932입니다.
이 property는 attributes { [[Writable]]:
½의 square root에 대한 Number value이며, 이는 approximately 0.7071067811865476입니다.
이 property는 attributes { [[Writable]]:
Math.SQRT1_2의 value는 Math.SQRT2의 value의 reciprocal에 approximate합니다.
2의 square root에 대한 Number value이며, 이는 approximately 1.4142135623730951입니다.
이 property는 attributes { [[Writable]]:
이 property는 attributes { [[Writable]]:
acos, acosh, asin, asinh, atan, atanh, atan2, cbrt, cos, cosh, exp, expm1, hypot, log, log1p, log2, log10, pow, random, sin, sinh, tan, 및 tanh function의 behaviour는 interest의 boundary case를 represent하는 certain argument value에 대해 specific result를 require하는 것 외에는 여기에서 precisely specified되지 않습니다. other argument value에 대해, these function은 familiar mathematical function의 result에 대한 approximation을 compute하도록 intended되지만, approximation algorithm 선택에는 some latitude가 allowed됩니다. general intent는 implementer가 given hardware platform에서 C programmer에게 available한 same mathematical library를 ECMAScript에 사용할 수 있게 하는 것입니다.
algorithm 선택은 implementation에 left되지만, implementation은 Sun Microsystems의 freely distributable mathematical library인 fdlibm(http://www.netlib.org/fdlibm)에 contained된
이 function은 x의 absolute value를 반환합니다; result는 x와 same magnitude를 가지지만 positive sign을 가집니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse cosine을 반환합니다. result는 radians로 expressed되며
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse hyperbolic cosine을 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse sine을 반환합니다. result는 radians로 expressed되며
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse hyperbolic sine을 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse tangent를 반환합니다. result는 radians로 expressed되며
called될 때 다음 step을 수행합니다:
이 function은 x의 inverse hyperbolic tangent를 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 arguments y와 x의 quotient
called될 때 다음 step을 수행합니다:
이 function은 x의 cube root를 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 x보다 less하지 않은 smallest(closest to -∞)
called될 때 다음 step을 수행합니다:
Math.ceil(x)의 value는 -Math.floor(-x)의 value와 same입니다.
이 function은 called될 때 다음 step을 수행합니다:
n이
이 function은 x의 cosine을 반환합니다. argument는 radians로 expressed됩니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 hyperbolic cosine을 반환합니다.
called될 때 다음 step을 수행합니다:
Math.cosh(x)의 value는 (Math.exp(x) + Math.exp(-x)) / 2의 value와 same입니다.
이 function은 x의 exponential function(e raised to the power of x, 여기서 e는 natural logarithm의 base)을 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 exponential function(e raised to the power of x, 여기서 e는 natural logarithm의 base)에서 1을 subtract한 result를 반환합니다. result는 x의 value가 0에 close한 경우에도 accurate한 way로 computed됩니다.
called될 때 다음 step을 수행합니다:
이 function은 x보다 greater하지 않은 greatest(closest to +∞)
called될 때 다음 step을 수행합니다:
Math.floor(x)의 value는 -Math.ceil(-x)의 value와 same입니다.
이 function은 called될 때 다음 step을 수행합니다:
이 function은 called될 때 다음 step을 수행합니다:
이 operation은 double-rounding 가능성 때문에 binary32로 cast한 다음 binary16으로 cast하는 것과 same하지 않습니다: 예를 들어 number k =
모든 platform이 binary64에서 binary16으로 casting하는 native support를 provide하는 것은 아닙니다. 이를 provide할 수 있는 다양한 library가 있으며, 여기에는 MIT-licensed half library가 include됩니다. Alternatively, roundTiesToEven 하에서 binary64에서 binary32로 first cast한 다음 result가 incorrect double-rounding으로 이어질 수 있는지 check할 수 있습니다. such case는 binary32 value의 mantissa를 initial cast를 roundTiesToOdd 하에서 수행했을 때 produced될 value가 되도록 adjusting함으로써 explicitly handled될 수 있습니다. adjusted value를 roundTiesToEven 하에서 binary16으로 casting하면 correct value가 produced됩니다.
zero or more arguments가 given되면, 이 function은 그 arguments의 squares의 sum의 square root를 반환합니다.
called될 때 다음 step을 수행합니다:
이 function의
implementation은 이 function이 two or more arguments와 함께 called될 때 naive implementation에서 발생하기 쉬운 overflow 및 underflow로 인한 precision loss를 avoid하도록 care해야 합니다.
이 function은 called될 때 다음 step을 수행합니다:
이 function은 x의 natural logarithm을 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 1 + x의 natural logarithm을 반환합니다. result는 x의 value가 zero에 close한 경우에도 accurate한 way로 computed됩니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 base 10 logarithm을 반환합니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 base 2 logarithm을 반환합니다.
called될 때 다음 step을 수행합니다:
zero or more arguments가 given되면, 이 function은 각 argument에
called될 때 다음 step을 수행합니다:
largest value를 determine하기 위한 value comparison은
이 function의
zero or more arguments가 given되면, 이 function은 각 argument에
called될 때 다음 step을 수행합니다:
smallest value를 determine하기 위한 value comparison은
이 function의
이 function은 called될 때 다음 step을 수행합니다:
이 function은 positive sign을 가지고,
distinct Math.random function은 successive call에서 distinct sequence of values를 produce해야 합니다.
이 function은 x에 closest하고 integral인 Number value를 반환합니다. two
called될 때 다음 step을 수행합니다:
Math.round(3.5)는 4를 반환하지만, Math.round(-3.5)는 -3을 반환합니다.
Math.round(x)의 value는 always Math.floor(x + 0.5)의 value와 same하지 않습니다. x가 x가 Math.round(x)는 Math.floor(x + 0.5)는 Math.round(x)는 x + 0.5를 computing할 때 internal rounding 때문에 Math.floor(x + 0.5)의 value와 differ할 수도 있습니다.
이 function은 x의 sign을 반환하여, x가 positive, negative, 또는 zero인지를 indicate합니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 sine을 반환합니다. argument는 radians로 expressed됩니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 hyperbolic sine을 반환합니다.
called될 때 다음 step을 수행합니다:
Math.sinh(x)의 value는 (Math.exp(x) - Math.exp(-x)) / 2의 value와 same입니다.
이 function은 x의 square root를 반환합니다.
called될 때 다음 step을 수행합니다:
Numbers의
called될 때 다음 step을 수행합니다:
sum의 value는 다양한 algorithm을 통해 arbitrary-precision arithmetic 없이 computed될 수 있습니다. 그중 하나는 Jonathan Richard Shewchuk의 Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates에 given된 “Grow-Expansion” algorithm입니다. 더 recent한 algorithm은 “Fast exact summation using small and large superaccumulators”에 given되어 있으며, 그 code는 https://gitlab.com/radfordneal/xsum에서 available합니다.
이 function은 x의 tangent를 반환합니다. argument는 radians로 expressed됩니다.
called될 때 다음 step을 수행합니다:
이 function은 x의 hyperbolic tangent를 반환합니다.
called될 때 다음 step을 수행합니다:
Math.tanh(x)의 value는 (Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x))의 value와 same입니다.
이 function은 fractional digit을 제거하여 number x의 integral part를 반환합니다. x가 already integral이면, result는 x입니다.
called될 때 다음 step을 수행합니다:
다음 추상 연산은
ECMAScript의 시간 측정은 POSIX의 시간 측정과 유사하며, 특히 역산 그레고리력, 1970년 1월 1일 UTC가 시작되는 자정의 에포크, 그리고 매일을 정확히 86,400초(각각의 길이는 1000밀리초)로 구성된 것으로 계산하는 정의를 공유한다.
ECMAScript 시간 값은 Number이며, 밀리초 정밀도로 특정 시점을 나타내는 유한한 정수 Number이거나 특정 시점을 나타내지 않는
시간 값은 UTC 윤초를 고려하지 않는다. 즉, 양의 윤초 안의 시점을 나타내는 시간 값은 없으며, 음의 윤초에 의해 UTC 타임라인에서 제거된 시점을 나타내는 시간 값은 존재한다. 하지만 시간 값의 정의는 윤초 경계에서만 불연속적이고 윤초 밖에서는 차이가 없는 방식으로 UTC와 구간별 정렬을 이룬다.
Number는 -9,007,199,254,740,992부터 9,007,199,254,740,992까지의 모든 정수를 정확하게 나타낼 수 있다(
1970년 1월 1일 UTC가 시작되는 자정의 정확한 순간은 시간 값
역산 그레고리력에서 윤년은 정확히 4로 나누어지고 400으로 나누어지거나 100으로 나누어지지 않는 해이다.
역산 그레고리력의 400년 주기에는 97개의 윤년이 포함된다. 이에 따라 1년의 평균은 365.2425일, 즉 31,556,952,000밀리초가 된다. 따라서 Number가 밀리초 정밀도로 정확하게 나타낼 수 있는 최대 범위는 1970년을 기준으로 약 -285,426년부터 285,426년까지이다. 이 절에서 명시한 시간 값이 지원하는 더 작은 범위는 1970년을 기준으로 약 -273,790년부터 273,790년까지이다.
다음 절의 알고리즘은 이러한 상수를 참조한다.
The abstract operation Day takes argument tv (유한한
The abstract operation TimeWithinDay takes argument tv (유한한
The abstract operation DayFromYear takes argument y (정수) and returns 정수. 연도 y의 첫째 날의 일 번호를 반환한다. It performs the following steps when called:
The abstract operation TimeFromYear takes argument y (정수) and returns
The abstract operation YearFromTime takes argument tv (유한한
The abstract operation DayWithinYear takes argument tv (유한한
The abstract operation InLeapYear takes argument tv (유한한
The abstract operation MonthFromTime takes argument tv (유한한
The abstract operation DateFromTime takes argument tv (유한한
The abstract operation WeekDay takes argument tv (유한한
The abstract operation HourFromTime takes argument tv (유한한
The abstract operation MinFromTime takes argument tv (유한한
The abstract operation SecFromTime takes argument tv (유한한
The abstract operation MillisecFromTime takes argument tv (유한한
에포크 나노초 수는 나노초 정밀도로 특정 시점을 나타내는 정수이다. 이는
UTC 기준 1970년 1월 1일이 시작되는 정확한 자정은 값 0으로 표현된다. 최댓값은
The abstract operation GetUTCEpochNanoseconds takes arguments year (정수), month (1 이상 12 이하인 정수), day (1 이상 31 이하인 정수), hour (0 이상 23 이하인 정수), minute (0 이상 59 이하인 정수), second (0 이상 59 이하인 정수), millisecond (0 이상 999 이하인 정수), microsecond (0 이상 999 이하인 정수), and nanosecond (0 이상 999 이하인 정수) and returns
ECMAScript의 시간대는 0x0000부터 0x007F까지의 닫힌구간에 있는 코드 단위로만 구성된 String인 시간대 식별자로 나타낸다.
ECMAScript 구현이 지원하는 시간대는
기본 시간대 식별자는 사용 가능한 명명된 시간대에서 선호되는 식별자이다. 비기본 시간대 식별자는 기본 시간대 식별자가 아닌 사용 가능한 명명된 시간대의 식별자이다. 사용 가능한 명명된 시간대 식별자는 기본 시간대 식별자 또는 비기본 시간대 식별자이다. 각각의 사용 가능한 명명된 시간대 식별자는 정확히 하나의 사용 가능한 명명된 시간대와 연결된다. 각각의 사용 가능한 명명된 시간대는 정확히 하나의 기본 시간대 식별자 및 0개 이상의 비기본 시간대 식별자와 연결된다.
ECMAScript 구현은 식별자가
ECMA-402 국제화 API 사양에 설명된 시간대 요구 사항을 준수하는 구현을 시간대 인식이라고 한다.
시간대 인식 구현은 IANA 시간대 데이터베이스의 “Zone” 및 “
The
입력이 음의 시간대 전이로 인해 두 번 이상 발생하는 현지 시각을 나타내는 경우(예: 일광 절약 시간이 종료되거나 시간대 규칙 변경으로 인해 시간대 오프셋이 감소하는 경우), 반환되는
어느 시간대에 대해서도 현지의 정치적 규칙을 포함하지 않는 ECMAScript 구현에서 사용하는 GetNamedTimeZoneEpochNanoseconds의 기본 구현은 호출될 때 다음 단계를 수행한다:
America/New_York에서 2017년 11월 5일 오전 1시 30분은 두 번 반복되므로, GetNamedTimeZoneEpochNanoseconds(
America/New_York에서 2017년 3월 12일 오전 2시 30분은 존재하지 않으므로, GetNamedTimeZoneEpochNanoseconds(
The
반환되는 정수는
어느 시간대에 대해서도 현지의 정치적 규칙을 포함하지 않는 ECMAScript 구현에서 사용하는 GetNamedTimeZoneOffsetNanoseconds의 기본 구현은 호출될 때 다음 단계를 수행한다:
시간대 오프셋 값은 양수이거나 음수일 수 있다.
Time Zone Identifier Record는
Time Zone Identifier Record에는
| 필드 이름 | 값 | 의미 |
|---|---|---|
| [[Identifier]] | String | 구현이 지원하는 |
| [[PrimaryIdentifier]] | String | [[Identifier]]가 해석되는 |
[[Identifier]]가
The
ECMA-402 국제화 API를 구현하는 모든 구현을 포함한
The
구현이 Date 객체의 메서드에서 일반적으로 제공하는 수준의 기능을 보장하기 위해, 호스트 환경의 시간대 설정에 대응하는 IANA 시간대 이름이 존재한다면 SystemTimeZoneIdentifier가 그 이름을 반환할 것을 권장한다.
해당 시간대에 표준시 및 서머 타임에 관한 현지 정치적 규칙이 존재한다면
예를 들어 호스트 환경이 사용자가 자신의 시간대로 미국 동부 시간을 선택한 시스템의 브라우저이면 SystemTimeZoneIdentifier는
The abstract operation LocalTime takes argument tv (유한한
구현에서 현지 시각 tv에 관한 정치적 규칙을 사용할 수 없으면
The abstract operation UTC takes argument t (Number) and returns
입력 t는 명목상
구현에서 현지 시간 t에 대한 정치적 규칙을 사용할 수 없는 경우,
America/New_York에서 2017년 11월 5일 오전 1:30은 두 번 반복되지만(시계를 뒤로 돌림), 오전 1:30 UTC-05가 아니라 오전 1:30 UTC-04로 해석해야 한다.
UTC(
America/New_York에서 2017년 3월 12일 오전 2:30은 존재하지 않지만, 오전 2:30 UTC-05(오전 3:30 UTC-04와 동일)로 해석해야 한다.
UTC(
The abstract operation MakeTime takes arguments hour (Number), min (Number), sec (Number), and ms (Number) and returns Number. 밀리초 수를 계산한다. It performs the following steps when called:
MakeTime의 산술 연산은 부동소수점 산술이며 결합법칙이 성립하지 않으므로, 연산은 올바른 순서로 수행해야 한다.
The abstract operation MakeDay takes arguments year (Number), month (Number), and date (Number) and returns 유한한 Number 또는
The abstract operation MakeDate takes arguments day (Number) and time (Number) and returns 유한한 Number 또는
The abstract operation MakeFullYear takes argument year (Number) and returns 정수 Number 또는
The abstract operation TimeClip takes argument time (Number) and returns
ECMAScript는 ISO 8601 역일 날짜 확장 형식을 단순화한 날짜-시간 문자열 교환 형식을 정의한다. 형식은 다음과 같다. YYYY-MM-DDTHH:mm:ss.sssZ
각 요소는 다음과 같다.
YYYY
|
역산 그레고리력의 연도를 0000부터 9999까지의 네 자리 십진 숫자로 나타내거나, |
-
|
|
MM
|
연중 월을 01(1월)부터 12(12월)까지의 두 자리 십진 숫자로 나타낸다. |
DD
|
월중 일을 01부터 31까지의 두 자리 십진 숫자로 나타낸다. |
T
|
시간 요소의 시작을 나타내기 위해 |
HH
|
자정 이후 경과한 완전한 시간의 수를 00부터 24까지의 두 자리 십진 숫자로 나타낸다. |
:
|
|
mm
|
해당 시간이 시작된 이후 경과한 완전한 분의 수를 00부터 59까지의 두 자리 십진 숫자로 나타낸다. |
ss
|
해당 분이 시작된 이후 경과한 완전한 초의 수를 00부터 59까지의 두 자리 십진 숫자로 나타낸다. |
.
|
|
sss
|
해당 초가 시작된 이후 경과한 완전한 밀리초의 수를 세 자리 십진 숫자로 나타낸다. |
Z
|
UTC 오프셋 표현이며, HH:mm이 오는 형식으로 지정한다(각각 UTC보다 앞서거나 뒤처진 현지 시각을 나타내는 |
이 형식에는 다음과 같은 날짜 전용 형식이 포함된다.
YYYY
YYYY-MM
YYYY-MM-DD
또한 위의 날짜 전용 형식 중 하나 바로 뒤에 다음 시간 형식 중 하나가 오고 선택적으로 UTC 오프셋 표현이 추가되는 “날짜-시간” 형식도 포함된다.
THH:mm
THH:mm:ss
THH:mm:ss.sss
범위를 벗어나거나 규격을 준수하지 않는 요소가 포함된 문자열은 이 형식의 유효한 인스턴스가 아니다.
모든 날은 자정에 시작하고 자정에 끝나므로 한 날짜와 연결될 수 있는 두 자정을 구별하기 위해 00:00과 24:00이라는 두 표기법을 사용할 수 있다. 이는 1995-02-04T24:00과 1995-02-05T00:00이라는 두 표기법이 정확히 같은 시점을 가리킨다는 의미이다.
이 형식은 RFC 9557에 정의된 시간대 이름이 포함된 주석을 지원하지 않으며, 시간대 오프셋의 숫자 표현만 지원한다.
1970년 1월 1일을 기준으로 앞뒤 약 273,790년에 이르는 전체 Date.parse
확장 연도를 사용하는 날짜-
| -271821-04-20T00:00:00Z | 기원전 271822년 |
| -000001-01-01T00:00:00Z | 기원전 2년 |
| +000000-01-01T00:00:00Z | 기원전 1년 |
| +000001-01-01T00:00:00Z | 서기 1년 |
| +001970-01-01T00:00:00Z | 서기 1970년 |
| +002009-12-15T00:00:00Z | 서기 2009년 |
| +275760-09-13T00:00:00Z | 서기 275760년 |
ECMAScript는 ISO 8601에서 파생된 UTC 오프셋 문자열 교환 형식을 정의한다. 형식은 다음 문법으로 설명한다.
The abstract operation IsTimeZoneOffsetString takes argument offsetString (String) and returns Boolean. 반환 값은 offsetString이
The abstract operation ParseTimeZoneOffsetString takes argument offsetString (String) and returns 정수. 반환 값은 String offsetString에 대응하는 나노초 단위의 UTC 오프셋이다. It performs the following steps when called:
Date
extends clause의 value로 사용될 수 있습니다. specified Date behaviour를 inherit하려는 subclass super call을 include해야 합니다.이 function은 called될 때 following steps를 수행합니다:
parse method(Date
이 function은 call이 occur한 UTC date 및 time을 designating하는 time value를 반환합니다.
이 function은 argument에
String이 MM 또는 DD elements가 absent이면, HH, mm, 또는 ss elements가 absent이면, sss element가 absent이면,
x가 ECMAScript의 particular implementation 안에서 milliseconds amount가 zero인 any Date이면, all referenced properties가 their initial values를 가진다면, following expressions는 that implementation에서 same numeric value를 produce해야 합니다:
x.valueOf()
Date.parse(x.toString())
Date.parse(x.toUTCString())
Date.parse(x.toISOString())
However, expression
Date.parse(x.toLocaleString())
은 preceding three expressions와 same Number value를 produce할 필요가 없으며, general하게 이 function에 Date Time String Format(toString 또는 toUTCString method에 의해 produced될 수 없는 any String value가 given될 때 produced되는 value는
Date.prototype의 initial value는
이 property는 attributes { [[Writable]]:
이 function은 called될 때 following steps를 수행합니다:
이 function의
이 function은 Date
Date prototype object는:
explicitly 달리 defined되지 않는 한, 아래에 defined된 Date prototype object의 methods는 generic하지 않으며, 이들에게 passed되는
Date.prototype.constructor의 initial value는
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
month가 존재하지 않으면 이 메서드는 month가 getMonth() 값으로 존재하는 것처럼 동작한다. date가 존재하지 않으면 date가 getDate() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
min이 존재하지 않으면 이 메서드는 min이 getMinutes() 값으로 존재하는 것처럼 동작한다. sec가 존재하지 않으면 sec가 getSeconds() 값으로 존재하는 것처럼 동작한다. ms가 존재하지 않으면 ms가 getMilliseconds() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
sec가 존재하지 않으면 이 메서드는 sec가 getSeconds() 값으로 존재하는 것처럼 동작한다. ms가 존재하지 않으면 ms가 getMilliseconds() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
date가 존재하지 않으면 이 메서드는 date가 getDate() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
ms가 존재하지 않으면 이 메서드는 ms가 getMilliseconds() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
month가 존재하지 않으면 이 메서드는 month가 getUTCMonth() 값으로 존재하는 것처럼 동작한다. date가 존재하지 않으면 date가 getUTCDate() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
min이 존재하지 않으면 이 메서드는 min이 getUTCMinutes() 값으로 존재하는 것처럼 동작한다. sec가 존재하지 않으면 sec가 getUTCSeconds() 값으로 존재하는 것처럼 동작한다. ms가 존재하지 않으면 ms가 getUTCMilliseconds() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
sec가 존재하지 않으면 이 메서드는 sec가 getUTCSeconds() 값으로 존재하는 것처럼 동작한다. ms가 존재하지 않으면 ms가 getUTCMilliseconds()에서 반환된 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
date가 존재하지 않으면 이 메서드는 date가 getUTCDate() 값으로 존재하는 것처럼 동작한다.
이 메서드는 호출될 때 다음 단계를 수행한다:
이 메서드의
ms가 존재하지 않으면 이 메서드는 ms가 getUTCMilliseconds() 값으로 존재하는 것처럼 동작한다.
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 JSON.stringify(
called될 때 following steps를 수행합니다:
argument는 ignored됩니다.
이 method는 intentionally generic입니다; toISOString method를 가질 것을 require합니다.
ECMA-402 Internationalization API를 include하는 ECMAScript implementation은 ECMA-402 specification에 specified된 대로 이 method를 implement해야 합니다. ECMAScript implementation이 ECMA-402 API를 include하지 않으면 이 method의 following specification이 사용됩니다:
이 method는 String value를 반환합니다. String의 contents는
이 method에 대한 optional parameter의 meaning은 ECMA-402 specification에 defined되어 있습니다; ECMA-402 support를 include하지 않는 implementation은 those parameter position을 anything else에 사용해서는 안 됩니다.
ECMA-402 Internationalization API를 include하는 ECMAScript implementation은 ECMA-402 specification에 specified된 대로 이 method를 implement해야 합니다. ECMAScript implementation이 ECMA-402 API를 include하지 않으면 이 method의 following specification이 사용됩니다:
이 method는 String value를 반환합니다. String의 contents는
이 method에 대한 optional parameter의 meaning은 ECMA-402 specification에 defined되어 있습니다; ECMA-402 support를 include하지 않는 implementation은 those parameter position을 anything else에 사용해서는 안 됩니다.
ECMA-402 Internationalization API를 include하는 ECMAScript implementation은 ECMA-402 specification에 specified된 대로 이 method를 implement해야 합니다. ECMAScript implementation이 ECMA-402 API를 include하지 않으면 이 method의 following specification이 사용됩니다:
이 method는 String value를 반환합니다. String의 contents는
이 method에 대한 optional parameter의 meaning은 ECMA-402 specification에 defined되어 있습니다; ECMA-402 support를 include하지 않는 implementation은 those parameter position을 anything else에 사용해서는 안 됩니다.
이 method는 called될 때 following steps를 수행합니다:
d.[[DateValue]]가 1000으로 evenly divisible한 any Date d에 대해, Date.parse(d.toString())의 result는 d.valueOf()와 =입니다.
이 method는 generic하지 않습니다;
The abstract operation TimeString takes argument tv (Number이지만
The abstract operation DateString takes argument tv (Number이지만
|
|
이름 |
|---|---|
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| Month 인덱스 | 이름 |
|---|---|
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
The abstract operation TimeZoneString takes argument tv (정수인 Number) and returns String. It performs the following steps when called:
The abstract operation ToDateString takes argument tv (정수인 Number 또는
이 method는 called될 때 following steps를 수행합니다:
이 method는 HTTP-date를 기반으로 하며, ECMAScript Dates가 support하는 full range of times를 support하도록 generalized됩니다.
called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 ECMAScript language operator가 Date를 primitive value로 convert하기 위해 called합니다. hint에 allowed되는 values는
called될 때 following steps를 수행합니다:
이 property는 attributes { [[Writable]]:
이 method의
Date instance는