You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Timestamp(Date) constructor is invoked with a Date that includes non-zero milliseconds then it will throw an error with the milliseconds out of range:
Error: Seconds 945 must be between 0 inclusive, and 60 exclusive
To reproduce:
it('constructor with Date that has milliseconds',()=>{constdate=newDate(2000,0,1,12,30,45,900);lettimestamp=newion.Timestamp(date);assert.equal(timestamp.getSecondsDecimal(),newion.Decimal('45.900'));});
The text was updated successfully, but these errors were encountered:
If the
Timestamp(Date)
constructor is invoked with aDate
that includes non-zero milliseconds then it will throw an error with the milliseconds out of range:To reproduce:
The text was updated successfully, but these errors were encountered: