(self: Duration)
| 533 | * @since 3.5.0 |
| 534 | */ |
| 535 | export const isZero = (self: Duration): boolean => { |
| 536 | switch (self.value._tag) { |
| 537 | case "Millis": |
| 538 | return self.value.millis === 0 |
| 539 | case "Nanos": |
| 540 | return self.value.nanos === bigint0 |
| 541 | case "Infinity": |
| 542 | case "NegativeInfinity": |
| 543 | return false |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | /** |
| 548 | * Returns `true` if the duration is negative (strictly less than zero). |