Module

Data.Time.PreciseDuration.Format

#Format

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 }

#formatPreciseDuration

#formatPreciseDuration'

Modules