time::formatting

Function format_number_pad_zero

source
pub(crate) fn format_number_pad_zero<const WIDTH: u8>(
    output: &mut impl Write,
    value: impl Integer + DigitCount + Copy,
) -> Result<usize, Error>
Expand description

Format a number with the provided width and zeros as padding.

The sign must be written by the caller.