Module
Data.Time.PreciseDuration.Format
- Package
- purescript-precise-datetime
- Repository
- awakesecurity/purescript-precise-datetime
#Format Source
type Format = { intermediateZeroes :: Boolean }
When intermediateZeroes
is set to true
, zero-value components that
appear in the middle of the duration will be shown.
For example:
-- "1h 0m 1s"
formatPreciseDuration { intermediateZeroes: true }
-- "1h 1s"
formatPreciseDuration { intermediateZeroes: false }