Re: Proposal: Duration

2019-03-05 Thread Alexandre Morgaut
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

Re: Proposal: Duration

2019-03-04 Thread Isiah Meadows
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

Re: Proposal: Duration

2019-03-04 Thread Gus Caplan
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() >&

Re: Proposal: Duration

2019-03-04 Thread Mark Davis ☕️
; >> 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

RE: Proposal: Duration

2019-03-04 Thread Ron Buckton
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

Re: Proposal: Duration

2019-03-04 Thread Naveen Chawla
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

Proposal: Duration

2019-03-04 Thread Alexandre Morgaut
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