Equations
- Time.zeroLPad s n = "".pushn '0' (n - s.length) ++ s
Instances For
Equations
- Time.zeroRPad s n = s ++ "".pushn '0' (n - s.length)
Instances For
Equations
- Time.instToZeroPaddedInt = { toZeroPadded := fun (n : Int) (i : Nat) => Time.zeroLPad (toString (if n < 0 then -n else n)) i }
Equations
- Time.instToZeroPaddedIccNat = { toZeroPadded := fun (n : Time.Icc a b) (i : Nat) => Time.zeroLPad (toString n.val) i }
Equations
- Time.instToZeroPaddedNat = { toZeroPadded := fun (n i : Nat) => Time.zeroLPad (toString n) i }