()
| 43 | } |
| 44 | |
| 45 | abs() { |
| 46 | return new Duration( |
| 47 | Math.abs(this.years), |
| 48 | Math.abs(this.months), |
| 49 | Math.abs(this.weeks), |
| 50 | Math.abs(this.days), |
| 51 | Math.abs(this.hours), |
| 52 | Math.abs(this.minutes), |
| 53 | Math.abs(this.seconds), |
| 54 | Math.abs(this.milliseconds), |
| 55 | ) |
| 56 | } |
| 57 | |
| 58 | static from(durationLike: unknown): Duration { |
| 59 | if (typeof durationLike === 'string') { |
no outgoing calls
no test coverage detected