`Duration.toHuman` 在 Duration 使用 `quarters` 时会抛出 RangeError
作者: ghost创建于 2023年11月27日更新于 2026年9月4日
描述错误
在对具有 quarters 属性设置的任何 Duration 使用 toHuman() 方法时,会抛出错误 RangeError: Invalid unit argument for Intl.NumberFormat() 'quarter'。
内容来源: moment/luxon