?um/p1-90`Number
extends clauseのvalueとして使用できます。指定されたNumber behaviourをinheritしようとするsubclass super callを含まなければなりません。このfunctionは呼び出されたとき、次のstepsを実行します:
Number
Number.EPSILONのvalueは、1と、Number valueとしてrepresentableな1より大きい最小のvalueとの差のmagnitudeに対するNumber valueであり、およそ2.2204460492503130808472633361816 × 10-16です。
このpropertyはattributes { [[Writable]]:
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは、NaNであるかどうかをdetermineする前にそのargumentをNumberへconvertしないという点で、global isNaN function(
このfunctionは呼び出されたとき、次のstepsを実行します:
Number.MAX_SAFE_INTEGERより大きいすべての9007199254740992と9007199254740993はいずれもNumber value
Number.MAX_SAFE_INTEGERのvalueは
このpropertyはattributes { [[Writable]]:
Number.MAX_VALUEのvalueはNumber typeのlargest positive
このpropertyはattributes { [[Writable]]:
Number.MIN_SAFE_INTEGERより小さいすべての-9007199254740992と-9007199254740993はいずれもNumber value
Number.MIN_SAFE_INTEGERのvalueは
このpropertyはattributes { [[Writable]]:
Number.MIN_VALUEのvalueはNumber typeのsmallest positive valueであり、およそ
Number.MIN_VALUEのvalueは、そのimplementationによって実際にrepresentできる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は:
明示的に別途述べられない限り、以下で定義されるNumber prototype objectのmethodsはgenericではなく、それらに渡される
methodのspecification内の“this Number value”というphraseは、method invocationの
Number.prototype.constructorのinitial valueは
このmethodは、this Number valueを、significandのdecimal pointの前に1桁、significandのdecimal pointの後にfractionDigits桁を持つdecimal exponential notationで表したStringを返します。fractionDigitsが
これは呼び出されたとき、次のstepsを実行します:
上記のrulesでrequiredされるよりもaccurateなconversionsを提供するimplementationsについては、step
このmethodは、this Number valueをdecimal fixed-point notationで表し、decimal pointの後にfractionDigits桁を持つStringを返します。fractionDigitsが
これは呼び出されたとき、次のstepsを実行します:
toFixedのoutputは、一部のvaluesについてtoStringよりもpreciseである場合があります。これは、toStringがnumberをadjacent Number valuesとdistinguishするのに十分なsignificant digitsだけをprintするためです。例えば、
(1000000000000000128).toString()は
(1000000000000000128).toFixed(0)は
ECMA-402 Internationalization APIを含むECMAScript implementationは、このmethodをECMA-402 specificationで指定される通りにimplementしなければなりません。ECMAScript implementationがECMA-402 APIを含まない場合、このmethodの次のspecificationが使用されます:
このmethodは、host environmentのcurrent localeのconventionsに従ってformattedされたthis Number valueを表すString valueをproduceします。このmethodはtoStringと同じものを返すことはpermissibleですが、encouragedはされません。
このmethodのoptional parametersのmeaningsはECMA-402 specificationで定義されます;ECMA-402 supportを含まないimplementationsは、それらのparameter positionsを他の目的に使用してはなりません。
このmethodは、this Number valueを、significandのdecimal pointの前に1桁、significandのdecimal pointの後に
これは呼び出されたとき、次のstepsを実行します:
optional radixは、
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodはgenericではありません;その
このmethodの
The abstract operation ThisNumberValue takes argument arg (an ECMAScript language value) and returns either a
Number instancesは、
BigInt
new operatorとともに使用すること、またはsubclassedされることを意図していません。class definitionのextends clauseのvalueとして使用できますが、BigInt super callはexceptionを引き起こします。このfunctionは呼び出されたとき、次のstepsを実行します:
The abstract operation NumberToBigInt takes argument number (a Number) and returns either a
BigInt
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは呼び出されたとき、次のstepsを実行します:
BigInt.prototypeのinitial valueは
このpropertyはattributes { [[Writable]]:
BigInt prototype objectは:
methodのspecification内の“this BigInt value”というphraseは、method invocationの
BigInt.prototype.constructorのinitial valueは
ECMA-402 Internationalization APIを含むECMAScript implementationは、このmethodをECMA-402 specificationで指定される通りにimplementしなければなりません。ECMAScript implementationがECMA-402 APIを含まない場合、このmethodの次のspecificationが使用されます:
このmethodは、host environmentのcurrent localeのconventionsに従ってformattedされたthis BigInt valueを表すString valueをproduceします。このmethodはtoStringと同じものを返すことはpermissibleですが、encouragedはされません。
このmethodのoptional parametersのmeaningsはECMA-402 specificationで定義されます;ECMA-402 supportを含まないimplementationsは、それらのparameter positionsを他の目的に使用してはなりません。
optional radixは、
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodはgenericではありません;その
The abstract operation ThisBigIntValue takes argument arg (an ECMAScript language value) and returns either a
このpropertyはattributes { [[Writable]]:
BigInt instancesは、
Math objectは:
new operatorを伴うこの仕様では、“the
e、すなわちnatural logarithmsのbaseに対するNumber valueであり、およそ2.7182818284590452354です。
このpropertyはattributes { [[Writable]]:
10のnatural logarithmに対するNumber valueであり、およそ2.302585092994046です。
このpropertyはattributes { [[Writable]]:
2のnatural logarithmに対するNumber valueであり、およそ0.6931471805599453です。
このpropertyはattributes { [[Writable]]:
e、すなわちnatural logarithmsのbaseのbase-10 logarithmに対するNumber valueです;このvalueはおよそ0.4342944819032518です。
このpropertyはattributes { [[Writable]]:
Math.LOG10EのvalueはMath.LN10のvalueのreciprocalにおおよそ等しいです。
e、すなわちnatural logarithmsのbaseのbase-2 logarithmに対するNumber valueです;このvalueはおよそ1.4426950408889634です。
このpropertyはattributes { [[Writable]]:
Math.LOG2EのvalueはMath.LN2のvalueのreciprocalにおおよそ等しいです。
π、すなわちcircleのcircumferenceとdiameterのratioに対するNumber valueであり、およそ3.1415926535897932です。
このpropertyはattributes { [[Writable]]:
½のsquare rootに対するNumber valueであり、およそ0.7071067811865476です。
このpropertyはattributes { [[Writable]]:
Math.SQRT1_2のvalueはMath.SQRT2のvalueのreciprocalにおおよそ等しいです。
2のsquare rootに対するNumber valueであり、およそ1.4142135623730951です。
このpropertyはattributes { [[Writable]]:
このpropertyはattributes { [[Writable]]:
functions acos、acosh、asin、asinh、atan、atanh、atan2、cbrt、cos、cosh、exp、expm1、hypot、log、log1p、log2、log10、pow、random、sin、sinh、tan、およびtanhのbehaviourは、interestのあるboundary casesを表す特定のargument valuesに対してspecific resultsをrequireすることを除き、ここではpreciselyに指定されません。他のargument valuesについては、これらのfunctionsはfamiliar mathematical functionsのresultsへのapproximationsをcomputeすることを意図していますが、approximation algorithmsの選択にはある程度のlatitudeが許されます。general intentは、implementerが、与えられたhardware platform上のECMAScriptに対して、そのplatform上のC programmersが利用できる同じmathematical libraryを使用できるようにすることです。
algorithmsの選択はimplementationに任されますが、implementationsは、Sun Microsystemsのfreely distributable mathematical libraryであるfdlibm(http://www.netlib.org/fdlibm)に含まれる
このfunctionはxのabsolute valueを返します;resultはxと同じmagnitudeを持ちますが、positive signを持ちます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse cosineを返します。resultはradiansで表され、
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse hyperbolic cosineを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse sineを返します。resultはradiansで表され、
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse hyperbolic sineを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse tangentを返します。resultはradiansで表され、
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのinverse hyperbolic tangentを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはarguments yおよびxのquotient
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのcube rootを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionは、x以上であるsmallest(-∞にclosest)
これは呼び出されたとき、次のstepsを実行します:
Math.ceil(x)のvalueは-Math.floor(-x)のvalueと同じです。
このfunctionは呼び出されたとき、次のstepsを実行します:
nが
このfunctionはxのcosineを返します。argumentはradiansで表されます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのhyperbolic cosineを返します。
これは呼び出されたとき、次のstepsを実行します:
Math.cosh(x)のvalueは(Math.exp(x) + Math.exp(-x)) / 2のvalueと同じです。
このfunctionはxのexponential function(eをx乗したもの。ここでeはnatural logarithmsのbase)を返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのexponential function(eをx乗したもの。ここでeはnatural logarithmsのbase)から1をsubtractしたresultを返します。resultは、xのvalueが0に近い場合でもaccurateになるようにcomputedされます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionは、x以下であるgreatest(+∞にclosest)
これは呼び出されたとき、次のstepsを実行します:
Math.floor(x)のvalueは-Math.ceil(-x)のvalueと同じです。
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは呼び出されたとき、次のstepsを実行します:
このoperationは、binary32へcastしてからbinary16へcastすることと同じではありません。double-roundingの可能性があるためです:例えばnumber k =
すべてのplatformsがbinary64からbinary16へのcastingにnative supportを提供するわけではありません。これを提供できるlibrariesはさまざまあり、MIT-licensedのhalf libraryも含まれます。あるいは、まずroundTiesToEvenの下でbinary64からbinary32へcastし、そのresultがincorrect double-roundingにつながる可能性があるかどうかをcheckすることもできます。そのようなcasesは、binary32 valueのmantissaをadjustし、initial castをroundTiesToOddの下で実行した場合にproduceされるvalueになるようにすることで明示的にhandleできます。adjusted valueをroundTiesToEvenの下でbinary16へcastすると、correct valueがproduceされます。
zero以上のargumentsが与えられると、このfunctionはそのargumentsのsquaresのsumのsquare rootを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionの
このfunctionが2つ以上のargumentsで呼び出されるときにnaive implementationsで発生しやすいoverflowsおよびunderflowsによるprecision lossを避けるよう、implementationsは注意すべきです。
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionはxのnatural logarithmを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionは1 + xのnatural logarithmを返します。resultは、xのvalueがzeroに近い場合でもaccurateになるようにcomputedされます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのbase 10 logarithmを返します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのbase 2 logarithmを返します。
これは呼び出されたとき、次のstepsを実行します:
zero以上のargumentsが与えられると、このfunctionはargumentsのそれぞれに
これは呼び出されたとき、次のstepsを実行します:
largest valueをdetermineするためのvaluesのcomparisonは、
このfunctionの
zero以上のargumentsが与えられると、このfunctionはargumentsのそれぞれに
これは呼び出されたとき、次のstepsを実行します:
smallest valueをdetermineするためのvaluesのcomparisonは、
このfunctionの
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionは、positive signを持ち、
distinct Math.random functionは、successive callsからdistinct sequence of valuesをproduceしなければなりません。
このfunctionは、xにclosestでありintegralであるNumber valueを返します。2つの
これは呼び出されたとき、次のstepsを実行します:
Math.round(3.5)は4を返しますが、Math.round(-3.5)は-3を返します。
Math.round(x)のvalueは、常にMath.floor(x + 0.5)のvalueと同じとは限りません。xがxがMath.round(x)はMath.floor(x + 0.5)はMath.round(x)はまた、x + 0.5をcomputeするときのinternal roundingのため、Math.floor(x + 0.5)のvalueと異なる場合があります。
このfunctionはxのsignを返し、xがpositive、negative、またはzeroであるかを示します。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのsineを返します。argumentはradiansで表されます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのhyperbolic sineを返します。
これは呼び出されたとき、次のstepsを実行します:
Math.sinh(x)のvalueは(Math.exp(x) - Math.exp(-x)) / 2のvalueと同じです。
このfunctionはxのsquare rootを返します。
これは呼び出されたとき、次のstepsを実行します:
Numbersの
これは呼び出されたとき、次のstepsを実行します:
sumのvalueは、さまざまなalgorithmsによってarbitrary-precision arithmeticなしでcomputedできます。その1つは、Jonathan Richard ShewchukによるAdaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicatesに示されている“Grow-Expansion” algorithmです。よりrecentなalgorithmは“Fast exact summation using small and large superaccumulators”に示されており、そのcodeはhttps://gitlab.com/radfordneal/xsumで利用できます。
このfunctionはxのtangentを返します。argumentはradiansで表されます。
これは呼び出されたとき、次のstepsを実行します:
このfunctionはxのhyperbolic tangentを返します。
これは呼び出されたとき、次のstepsを実行します:
Math.tanh(x)のvalueは(Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x))のvalueと同じです。
このfunctionはnumber xのintegral partを返し、fractional digitsをremoveします。xがすでにintegralである場合、resultはxです。
これは呼び出されたとき、次のstepsを実行します:
以下の
ECMAScriptにおけるtime measurementはPOSIXにおけるtime measurementに類似しており、特にproleptic Gregorian calendar、1970年1月1日UTCの開始時のmidnightをepochとすること、およびすべての日を正確に86,400秒(各秒は1000 milliseconds)から構成されるものとしてaccountingすることによるdefinitionを共有します。
ECMAScriptのtime valueはNumberであり、millisecond precisionでtime内のinstantを表す
Time valuesはUTC leap secondsをaccountしません—positive leap seconds内のinstantsを表すtime valuesは存在せず、negative leap secondsによってUTC timelineからremovedされたinstantsを表すtime valuesが存在します。しかしながら、time valuesのdefinitionは、それにもかかわらずUTCとのpiecewise alignmentをもたらし、discontinuitiesはleap second boundariesにのみ存在し、leap secondsの外側では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 yearsは、4でdivisibleであり、かつ400でdivisibleであるか100でdivisibleでないものです。
proleptic Gregorian calendarの400 year cycleには97 leap yearsが含まれます。これにより、yearあたり平均365.2425 days、すなわち31,556,952,000 millisecondsになります。したがって、Numberがmillisecond precisionでexactlyにrepresentできるmaximum rangeは、1970年を基準としておよそ-285,426年から285,426年です。このsectionで指定されるtime valueによってsupportされるsmaller rangeは、1970年を基準としておよそ-273,790年から273,790年です。
これらのconstantsは、以下のsectionsのalgorithmsによって参照されます。
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におけるtime zonesは、time zone identifiersによって表されます。これは、0x0000から0x007Fまでの
primary time zone identifierは、available named time zoneのpreferred identifierです。 non-primary time zone identifierは、primary time zone identifierではないavailable named time zoneのidentifierです。 available named time zone identifierは、primary time zone identifierまたはnon-primary time zone identifierのいずれかです。 各available named time zone identifierは、exactly one available named time zoneにassociatedされます。 各available named time zoneは、exactly one primary time zone identifierおよびzero or more non-primary time zone identifiersにassociatedされます。
ECMAScript implementationsは、identifier
ECMA-402 Internationalization API specificationで記述されるtime zonesのrequirementsに従うimplementationsは、time zone awareと呼ばれます。
Time zone aware implementationsは、IANA Time Zone DatabaseのZoneおよび
The
inputがnegative time zone transitionのために複数回発生するlocal timeを表す場合(例えばdaylight saving timeが終了するとき、またはtime zone rule changeによりtime zone offsetがdecreasedされるとき)、返される
time zonesに関するlocal political rulesを含まないECMAScript implementationsで使用されるGetNamedTimeZoneEpochNanosecondsのdefault implementationは、呼び出されたとき次のstepsを実行します:
America/New_Yorkにおける2017年11月5日の1:30 AMは2回repeatedされるため、GetNamedTimeZoneEpochNanoseconds(
America/New_Yorkにおける2017年3月12日の2:30 AMは存在しないため、GetNamedTimeZoneEpochNanoseconds(
The
返される
time zonesに関するlocal political rulesを含まないECMAScript implementationsで使用されるGetNamedTimeZoneOffsetNanosecondsのdefault implementationは、呼び出されたとき次のstepsを実行します:
Time zone offset valuesはpositiveまたはnegativeであり得ます。
Time Zone Identifier Recordは、
Time Zone Identifier Recordsは、
| Field Name | Value | Meaning |
|---|---|---|
| [[Identifier]] | a String | implementationによってsupportされる |
| [[PrimaryIdentifier]] | a String | [[Identifier]]がresolveする |
[[Identifier]]が
The
ECMA-402 Internationalization APIをimplementするすべてのimplementationsを含む
The
implementationsがDate objectのmethodsにおいてcommonlyに提供するlevel of functionalityをensureするため、SystemTimeZoneIdentifierは、そのようなものが存在する場合、host environmentのtime zone settingに対応するIANA time zone nameを返すことがrecommendedされます。
例えば、host environmentが、userがtime zoneとしてUS Eastern Timeを選択したsystem上のbrowserである場合、SystemTimeZoneIdentifierは
The abstract operation LocalTime takes argument tv (a
local time tvに関するpolitical rulesがimplementation内でavailableでない場合、resultはtvです。なぜなら
異なる2つのinput
The abstract operation UTC takes argument t (a Number) and returns a
Input tはnominallyには
local time tに関するpolitical rulesがimplementation内でavailableでない場合、resultはtです。なぜなら
America/New_Yorkにおける2017年11月5日の1:30 AMは2回repeatedされます(fall backward)が、1:30 AM UTC-05ではなく1:30 AM UTC-04としてinterpretedされなければなりません。
UTC(
America/New_Yorkにおける2017年3月12日の2:30 AMは存在しませんが、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ではないため、operationsはcorrect orderでperformされなければなりません。
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を定義します。formatは次の通りです:YYYY-MM-DDTHH:mm:ss.sssZ
elementsは次の通りです:
YYYY
|
proleptic Gregorian calendarにおけるyearであり、0000から9999までのfour decimal digits、または |
-
|
|
MM
|
yearのmonthであり、01(January)から12(December)までのtwo decimal digitsです。 |
DD
|
monthのdayであり、01から31までのtwo decimal digitsです。 |
T
|
time elementのbeginningを示すため、 |
HH
|
midnightから経過した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が続くものとしてspecifiedされます(UTCよりaheadまたはbehindであるlocal timeをそれぞれ示すための |
このformatはdate-only formsを含みます:
YYYY
YYYY-MM
YYYY-MM-DD
また、上記のdate-only formsのいずれかの直後に、optional UTC offset representationがappendedされた以下のtime formsのいずれかが続く“date-time” formsも含みます:
THH:mm
THH:mm:ss
THH:mm:ss.sss
out-of-boundsまたはnonconforming elementsを含むstringは、このformatのvalid instanceではありません。
すべての日はmidnightでstartしmidnightでendするため、notation 00:00および24:00の2つは、one dateにassociatedされ得る2つのmidnightsをdistinguishするためにavailableです。これは、次の2つのnotationsがexactly same point in timeをreferすることを意味します:1995-02-04T24:00および1995-02-05T00:00。後者のformを“calendar dayのend”としてinterpretすることは、そのspecificationがtime intervalsをdescribingするためにreservedし、single points in timeのrepresentations内ではpermitしていないとしても、ISO 8601とconsistentです。
CET、ESTなどのcivil time zonesのabbreviationsをspecifyするinternational standardは存在せず、ときには同じabbreviationが非常に異なる2つのtime zonesに使用されることすらあります。この理由により、ISO 8601とこのformatの両方は、time zone offsetsのnumeric representationsを指定します。
1970年1月1日からforwardまたはbackwardにおよそ273,790年という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を定義します。 formatは以下の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として使用できます。指定されたDate behaviourをinheritしようとするsubclass super callを含まなければなりません。このfunctionは呼び出されたとき、次のstepsを実行します:
parse method(Date
このfunctionは、それへのcallのoccurrenceのUTC dateおよびtimeをdesignateする
このfunctionは、そのargumentに
StringがMMまたはDD elementsがabsentである場合、HH、mm、またはss elementsがabsentである場合、sss elementがabsentである場合、
xが、ECMAScriptの特定のimplementation内でmilliseconds amountがzeroである任意のDateである場合、referencedされるすべてのpropertiesがinitial valuesを持つなら、以下のexpressionsはすべて、そのimplementation内でsame numeric valueをproduceすべきです:
x.valueOf()
Date.parse(x.toString())
Date.parse(x.toUTCString())
Date.parse(x.toISOString())
しかし、expression
Date.parse(x.toLocaleString())
は、preceding three expressionsとsame Number valueをproduceすることはrequiredではなく、generalに、このfunctionによってproduceされるvalueは、Date Time String Format(toStringまたはtoUTCString methodによってproduceされ得ない任意のString valueが与えられた場合、
Date.prototypeのinitial valueは
このpropertyはattributes { [[Writable]]:
このfunctionは呼び出されたとき、次のstepsを実行します:
このfunctionの
このfunctionはDate
Date prototype objectは:
明示的に別途定義されない限り、以下で定義されるDate prototype objectのmethodsはgenericではなく、それらに渡される
Date.prototype.constructorのinitial valueは
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
monthがpresentでない場合、このmethodはmonthがvalue getMonth()でpresentであったかのようにbehaveします。dateがpresentでない場合、dateがvalue getDate()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次の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は呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
secがpresentでない場合、このmethodはsecがvalue getSeconds()でpresentであったかのようにbehaveします。msがpresentでない場合、これはmsがvalue getMilliseconds()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
dateがpresentでない場合、このmethodはdateがvalue getDate()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
msがpresentでない場合、このmethodはmsがvalue getMilliseconds()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
monthがpresentでない場合、このmethodはmonthがvalue getUTCMonth()でpresentであったかのようにbehaveします。dateがpresentでない場合、dateがvalue getUTCDate()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次の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は呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
secがpresentでない場合、このmethodはsecがvalue getUTCSeconds()でpresentであったかのようにbehaveします。msがpresentでない場合、msがgetUTCMilliseconds()によって返されるvalueでpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
dateがpresentでない場合、このmethodはdateがvalue getUTCDate()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodの
msがpresentでない場合、このmethodはmsがvalue getUTCMilliseconds()でpresentであったかのようにbehaveします。
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは、JSON.stringify(
これは呼び出されたとき、次のstepsを実行します:
argumentはignoredされます。
このmethodは意図的にgenericです;そのtoISOString methodを持つ必要があります。
ECMA-402 Internationalization APIを含むECMAScript implementationは、このmethodをECMA-402 specificationで指定される通りにimplementしなければなりません。ECMAScript implementationがECMA-402 APIを含まない場合、このmethodの次のspecificationが使用されます:
このmethodはString valueを返します。Stringのcontentsは
このmethodのoptional parametersのmeaningはECMA-402 specificationで定義されます;ECMA-402 supportを含まないimplementationsは、それらのparameter positionsを他の目的に使用してはなりません。
ECMA-402 Internationalization APIを含むECMAScript implementationは、このmethodをECMA-402 specificationで指定される通りにimplementしなければなりません。ECMAScript implementationがECMA-402 APIを含まない場合、このmethodの次のspecificationが使用されます:
このmethodはString valueを返します。Stringのcontentsは
このmethodのoptional parametersのmeaningはECMA-402 specificationで定義されます;ECMA-402 supportを含まないimplementationsは、それらのparameter positionsを他の目的に使用してはなりません。
ECMA-402 Internationalization APIを含むECMAScript implementationは、このmethodをECMA-402 specificationで指定される通りにimplementしなければなりません。ECMAScript implementationがECMA-402 APIを含まない場合、このmethodの次のspecificationが使用されます:
このmethodはString valueを返します。Stringのcontentsは
このmethodのoptional parametersのmeaningはECMA-402 specificationで定義されます;ECMA-402 supportを含まないimplementationsは、それらのparameter positionsを他の目的に使用してはなりません。
このmethodは呼び出されたとき、次のstepsを実行します:
d.[[DateValue]]が1000でevenly divisibleである任意のDate dについて、Date.parse(d.toString()) = d.valueOf()のresultになります。
この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は呼び出されたとき、次のstepsを実行します:
このmethodは、HTTP-dateに基づき、ECMAScript Datesによってsupportされるfull range of timesをsupportするようgeneralizedされています。
これは呼び出されたとき、次のstepsを実行します:
このmethodは呼び出されたとき、次のstepsを実行します:
このmethodは、Dateをprimitive valueへconvertするためにECMAScript language operatorsによって呼び出されます。hintにallowedなvaluesは
これは呼び出されたとき、次のstepsを実行します:
このpropertyはattributes { [[Writable]]:
このmethodの
Date instancesは、