?um/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을 수행합니다:
다음 abstract operation은
ECMAScript의 time measurement는 POSIX의 time measurement와 analogous하며, 특히 proleptic Gregorian calendar, 1970년 1월 1일 UTC 시작 시점의 midnight인 epoch, 그리고 every day가 정확히 86,400초(각각 1000 milliseconds 길이)로 구성된다는 accounting을 공유합니다.
ECMAScript time value는 Number이며, millisecond precision으로 time 안의 instant를 represent하는
Time value는 UTC leap second를 account하지 않습니다—positive leap second 안의 instant를 represent하는 time value는 없고, negative leap second에 의해 UTC timeline에서 removed된 instant를 represent하는 time value가 있습니다. 그러나 time value의 definition은 nonetheless UTC와 piecewise alignment를 yield하며, discontinuity는 leap second boundary에서만 존재하고 leap second 밖에서는 zero difference입니다.
Number는 -9,007,199,254,740,992부터 9,007,199,254,740,992까지의 모든
1970년 1월 1일 UTC 시작 시점의 midnight의 exact moment는 time value
proleptic Gregorian calendar에서 leap year는 4로 divisible하면서 400으로 divisible하거나 100으로 divisible하지 않는 year입니다.
proleptic Gregorian calendar의 400 year cycle은 97 leap years를 contain합니다. 이는 year당 average 365.2425 days를 yield하며, 이는 31,556,952,000 milliseconds입니다. 따라서 Number가 millisecond precision으로 exactly represent할 수 있는 maximum range는 1970을 기준으로 approximately -285,426부터 285,426 years까지입니다. 이 section에 specified된 time value가 support하는 smaller range는 1970을 기준으로 approximately -273,790부터 273,790 years까지입니다.
이러한 constant는 following sections의 algorithm에서 referenced됩니다.
The abstract operation Day takes argument tv (a
The abstract operation TimeWithinDay takes argument tv (a
The abstract operation DaysInYear takes argument y (an
The abstract operation DayFromYear takes argument y (an
The abstract operation TimeFromYear takes argument y (an
The abstract operation YearFromTime takes argument tv (a
The abstract operation DayWithinYear takes argument tv (a
The abstract operation InLeapYear takes argument tv (a
The abstract operation MonthFromTime takes argument tv (a
The abstract operation DateFromTime takes argument tv (a
The abstract operation WeekDay takes argument tv (a
The abstract operation HourFromTime takes argument tv (a
The abstract operation MinFromTime takes argument tv (a
The abstract operation SecFromTime takes argument tv (a
The abstract operation msFromTime takes argument tv (a
The abstract operation GetUTCEpochNanoseconds takes arguments year (an
ECMAScript의 시간대는 시간대 식별자로 표현되며, 이는 0x0000부터 0x007F까지의 닫힌 구간에 있는 코드 유닛으로만 구성된 String이다.
ECMAScript 구현체가 지원하는 시간대는
주 시간대 식별자는 사용 가능한 이름 있는 시간대에 대한 선호 식별자이다. 비주 시간대 식별자는 주 시간대 식별자가 아닌, 사용 가능한 이름 있는 시간대에 대한 식별자이다. 사용 가능한 이름 있는 시간대 식별자는 주 시간대 식별자 또는 비주 시간대 식별자 중 하나이다. 각 사용 가능한 이름 있는 시간대 식별자는 정확히 하나의 사용 가능한 이름 있는 시간대와 연관된다. 각 사용 가능한 이름 있는 시간대는 정확히 하나의 주 시간대 식별자와 0개 이상의 비주 시간대 식별자와 연관된다.
ECMAScript 구현체는 식별자
ECMA-402 국제화 API 명세에 설명된 시간대 요구사항을 따르는 구현체를 시간대 인식이라고 한다.
시간대 인식 구현체는 IANA Time Zone Database의 Zone 및
The
input이 negative time zone transition 때문에 more than once occur하는 local time을 represent할 때(예: daylight saving time이 끝나거나 time zone rule change 때문에 time zone offset이 decreased되는 경우), returned
any time zone에 대한 local political rules를 include하지 않는 ECMAScript implementation에 사용될 GetNamedTimeZoneEpochNanoseconds의 default implementation은 called될 때 following steps를 수행합니다:
time zone aware implementation에 대해 required되고(all others에도 recommended됨), IANA Time Zone Database https://www.iana.org/time-zones/의 time zone information을 사용해야 합니다.
America/New_York에서 2017년 11월 5일 1:30 AM은 twice repeated되므로, GetNamedTimeZoneEpochNanoseconds(
America/New_York에서 2017년 3월 12일 2:30 AM은 exist하지 않으므로, GetNamedTimeZoneEpochNanoseconds(
The
returned
any time zone에 대한 local political rules를 include하지 않는 ECMAScript implementation에 사용될 GetNamedTimeZoneOffsetNanoseconds의 default implementation은 called될 때 following steps를 수행합니다:
Time zone offset value는 positive 또는 negative일 수 있습니다.
Time Zone Identifier Record는
Time Zone Identifier Record는
| Field Name | Value | Meaning |
|---|---|---|
| [[Identifier]] | a String | implementation이 support하는 |
| [[PrimaryIdentifier]] | a String | [[Identifier]]가 resolve되는 primary |
[[Identifier]]가 primary
The
ECMA-402 Internationalization API를 implement하는 all implementation을 포함하여 time zone aware implementation은 ECMA-402 specification에 specified된 대로 AvailableNamedTimeZoneIdentifiers abstract operation을 implement해야 합니다. time zone aware가 아닌 implementation의 경우, AvailableNamedTimeZoneIdentifiers는 called될 때 following steps를 수행합니다:
The
Date object의 method에서 implementation이 commonly provide하는 functionality level을 ensure하기 위해, such thing이 exist한다면 SystemTimeZoneIdentifier가
예를 들어
The abstract operation LocalTime takes argument tv (a
local time tv에 대한 political rules가 implementation 안에서 available하지 않으면,
time zone aware implementation에 대해 required되고(all others에도 recommended됨), IANA Time Zone Database https://www.iana.org/time-zones/의 time zone information을 사용해야 합니다.
negative time zone transition에서 repeated time이 있을 때(예: daylight saving time이 끝나거나 time zone adjustment가 decreased되는 경우) two different input
The abstract operation UTC takes argument t (a Number) and returns a
input t는 nominally
local time t에 대한 political rules가 implementation 안에서 available하지 않으면,
time zone aware implementation에 대해 required되고(all others에도 recommended됨), IANA Time Zone Database https://www.iana.org/time-zones/의 time zone information을 사용해야 합니다.
America/New_York에서 2017년 11월 5일 1:30 AM은 twice repeated됩니다(fall backward). 하지만 이는 1:30 AM UTC-05가 아니라 1:30 AM UTC-04로 interpreted되어야 합니다.
UTC(
America/New_York에서 2017년 3월 12일 2:30 AM은 exist하지 않지만, 2:30 AM UTC-05(3:30 AM UTC-04와 equivalent)로 interpreted되어야 합니다.
UTC(
The abstract operation MakeTime takes arguments hour (a Number), min (a Number), sec (a Number), and ms (a Number) and returns a Number. milliseconds 수를 calculate합니다. It performs the following steps when called:
MakeTime 안의 arithmetic은 floating-point arithmetic이며 associative하지 않으므로, operation은 correct order로 performed되어야 합니다.
The abstract operation MakeDay takes arguments year (a Number), month (a Number), and date (a Number) and returns a
The abstract operation MakeDate takes arguments day (a Number) and time (a Number) and returns a
The abstract operation MakeFullYear takes argument year (a Number) and returns an
The abstract operation TimeClip takes argument time (a Number) and returns a
ECMAScript는 ISO 8601 calendar date extended format의 simplification을 기반으로 date-times를 위한 string interchange format을 define합니다. format은 다음과 같습니다: YYYY-MM-DDTHH:mm:ss.sssZ
elements는 다음과 같습니다:
YYYY
|
proleptic Gregorian calendar에서 0000부터 9999까지의 four decimal digits로 된 year이거나, |
-
|
|
MM
|
01 (January)부터 12 (December)까지의 two decimal digits로 된 year의 month입니다. |
DD
|
01부터 31까지의 two decimal digits로 된 month의 day입니다. |
T
|
time element의 beginning을 indicate하기 위해 |
HH
|
midnight 이후 passed한 complete hours 수이며, 00부터 24까지의 two decimal digits입니다. |
:
|
|
mm
|
hour의 start 이후 complete minutes 수이며, 00부터 59까지의 two decimal digits입니다. |
ss
|
minute의 start 이후 complete seconds 수이며, 00부터 59까지의 two decimal digits입니다. |
.
|
|
sss
|
second의 start 이후 complete milliseconds 수이며, three decimal digits입니다. |
Z
|
UTC offset representation이며, HH:mm가 followed되는 형식( |
이 format은 date-only form을 include합니다:
YYYY
YYYY-MM
YYYY-MM-DD
또한 above date-only form 중 하나 바로 뒤에 following time form 중 하나가 followed되고 optional UTC offset representation이 appended되는 “date-time” form도 include합니다:
THH:mm
THH:mm:ss
THH:mm:ss.sss
out-of-bounds 또는 nonconforming element를 contain하는 string은 이 format의 valid instance가 아닙니다.
every day는 midnight로 start하고 end하므로, two notations 00:00 및 24:00는 one date와 associated될 수 있는 two midnights를 distinguish하기 위해 available합니다. 이는 following two notations가 exactly same point in time을 refer함을 의미합니다: 1995-02-04T24:00 및 1995-02-05T00:00. latter form을 “calendar day의 end”로 해석하는 것은 ISO 8601과 consistent합니다. 그 specification이 이를 time
CET, EST 등과 같은 civil time zone의 abbreviation을 specify하는 international standard는 존재하지 않으며, sometimes same abbreviation이 even two very different time zones에 사용됩니다. 이러한 이유로 ISO 8601과 이 format 모두 time zone offset의 numeric representation을 specify합니다.
1970년 1월 1일을 기준으로 forward 또는 backward approximately 273,790 years의 full Date.parse
expanded years를 가진 date-
| -271821-04-20T00:00:00Z | 271822 B.C. |
| -000001-01-01T00:00:00Z | 2 B.C. |
| +000000-01-01T00:00:00Z | 1 B.C. |
| +000001-01-01T00:00:00Z | 1 A.D. |
| +001970-01-01T00:00:00Z | 1970 A.D. |
| +002009-12-15T00:00:00Z | 2009 A.D. |
| +275760-09-13T00:00:00Z | 275760 A.D. |
ECMAScript는 ISO 8601에서 derived된 UTC offsets를 위한 string interchange format을 define합니다. format은 following grammar로 described됩니다.
The abstract operation IsTimeZoneOffsetString takes argument offsetString (a String) and returns a Boolean. return value는 offsetString이
The abstract operation ParseTimeZoneOffsetString takes argument offsetString (a String) and returns an
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하는
이 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는
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method의
month가 present하지 않으면, 이 method는 month가 value getMonth()로 present한 것처럼 behave합니다. date가 present하지 않으면, date가 value getDate()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
min이 present하지 않으면, 이 method는 min이 value getMinutes()로 present한 것처럼 behave합니다. sec가 present하지 않으면, sec가 value getSeconds()로 present한 것처럼 behave합니다. ms가 present하지 않으면, ms가 value getMilliseconds()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method의
sec가 present하지 않으면, 이 method는 sec가 value getSeconds()로 present한 것처럼 behave합니다. ms가 present하지 않으면, 이는 ms가 value getMilliseconds()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
date가 present하지 않으면, 이 method는 date가 value getDate()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
ms가 present하지 않으면, 이 method는 ms가 value getMilliseconds()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method의
month가 present하지 않으면, 이 method는 month가 value getUTCMonth()로 present한 것처럼 behave합니다. date가 present하지 않으면, date가 value getUTCDate()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
min이 present하지 않으면, 이 method는 min이 value getUTCMinutes()로 present한 것처럼 behave합니다. sec가 present하지 않으면, sec가 value getUTCSeconds()로 present한 것처럼 behave합니다. ms가 present하지 않으면, ms가 value getUTCMilliseconds()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method는 called될 때 following steps를 수행합니다:
이 method의
sec가 present하지 않으면, 이 method는 sec가 value getUTCSeconds()로 present한 것처럼 behave합니다. ms가 present하지 않으면, 이는 ms가 getUTCMilliseconds()에 의해 returned되는 value로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
date가 present하지 않으면, 이 method는 date가 value getUTCDate()로 present한 것처럼 behave합니다.
이 method는 called될 때 following steps를 수행합니다:
이 method의
ms가 present하지 않으면, 이 method는 ms가 value getUTCMilliseconds()로 present한 것처럼 behave합니다.
이 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 (a Number, but not
The abstract operation DateString takes argument tv (a Number, but not
| Number | Name |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Number | Name |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The abstract operation TimeZoneString takes argument tv (an
The abstract operation ToDateString takes argument tv (an
이 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는