Const
ISO 8601 or a number ↔ a luxon Duration. The unit option is 'iso' (default), 's' or 'ms'. Each unit is kept on the wire. equals compares years, months, weeks and days per unit and the rest by length: PT1H equals PT60M, but P1M is not P30D.
Duration
unit
'iso'
's'
'ms'
equals
PT1H
PT60M
P1M
P30D
ISO 8601 or a number ↔ a luxon
Duration. Theunitoption is'iso'(default),'s'or'ms'. Each unit is kept on the wire.equalscompares years, months, weeks and days per unit and the rest by length:PT1HequalsPT60M, butP1Mis notP30D.