We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f6a05 commit b3efed6Copy full SHA for b3efed6
src/core/time.ts
@@ -129,7 +129,7 @@ export class TimeValue {
129
let seconds = this.seconds + other.seconds;
130
let nanoseconds = this.nanoseconds + other.nanoseconds;
131
132
- if (nanoseconds >= TimeUnit.sec) {
+ if (nanoseconds >= TimeUnit.sec.valueOf()) {
133
// Carry the second.
134
seconds += 1;
135
nanoseconds -= TimeUnit.sec;
@@ -170,7 +170,7 @@ export class TimeValue {
170
let seconds = this.seconds * factor;
171
let nanoseconds = this.nanoseconds * factor;
172
173
174
// Carry seconds.
175
const carry = Math.floor(nanoseconds / TimeUnit.sec);
176
seconds += carry;
0 commit comments