()
| 108 | } |
| 109 | |
| 110 | parseFromMilliseconds() { |
| 111 | let { $ms } = this |
| 112 | this.$d.years = roundNumber($ms / MILLISECONDS_A_YEAR) |
| 113 | $ms %= MILLISECONDS_A_YEAR |
| 114 | this.$d.months = roundNumber($ms / MILLISECONDS_A_MONTH) |
| 115 | $ms %= MILLISECONDS_A_MONTH |
| 116 | this.$d.days = roundNumber($ms / MILLISECONDS_A_DAY) |
| 117 | $ms %= MILLISECONDS_A_DAY |
| 118 | this.$d.hours = roundNumber($ms / MILLISECONDS_A_HOUR) |
| 119 | $ms %= MILLISECONDS_A_HOUR |
| 120 | this.$d.minutes = roundNumber($ms / MILLISECONDS_A_MINUTE) |
| 121 | $ms %= MILLISECONDS_A_MINUTE |
| 122 | this.$d.seconds = roundNumber($ms / MILLISECONDS_A_SECOND) |
| 123 | $ms %= MILLISECONDS_A_SECOND |
| 124 | this.$d.milliseconds = $ms |
| 125 | } |
| 126 | |
| 127 | toISOString() { |
| 128 | const Y = getNumberUnitFormat(this.$d.years, 'Y') |
no test coverage detected