n tricky
> part for the Date Object in EMCA 262 & ECMA 402.
> >>>
> >>> Duration, sometimes called TimeInterval, is a common concept supported
> by most languages or associated standard libs.
> >>>
> >>> In very short, Duration object woul
syntax in its contructor: new Duration('P6W') // for
>>> Period 6 Weeks
>>> - allow to handle Date diff operations
>>> - allow to be interpreted by setTimeout() & setInterval()
>>>
>>> Please find below a draft exposing the c
gt;
>>> In very short, Duration object would:
>>> - support the ISO syntax in its contructor: new Duration('P6W') // for
>>> Period 6 Weeks
>>> - allow to handle Date diff operations
>>> - allow to be interpreted by setTimeout() & setInterval()
>&
;
>> In very short, Duration object would:
>> - support the ISO syntax in its contructor: new Duration('P6W') // for
>> Period 6 Weeks
>> - allow to handle Date diff operations
>> - allow to be interpreted by setTimeout() & setInterval()
>>
>> Please find
that meshes with the proposed `plus` method on temporal
objects would be a huge benefit.
Ron
From: es-discuss On Behalf Of Alexandre Morgaut
Sent: Monday, March 4, 2019 10:47 AM
To: es-discuss list
Subject: Proposal: Duration
Here a proposal to make ECMAScript natively support a Duration Object
in its contructor: new Duration('P6W') // for
> Period 6 Weeks
> - allow to handle Date diff operations
> - allow to be interpreted by setTimeout() & setInterval()
>
> Please find below a draft exposing the concept
> I'd be very happy if someone from TC39 would be inter
ry happy if someone from TC39 would be interested to champion it
https://github.com/AMorgaut/proposal-Duration
Regards,
Alexandre.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
7 matches
Mail list logo