time::formatting

Function format_component

source
pub(crate) fn format_component(
    output: &mut impl Write,
    component: Component,
    date: Option<Date>,
    time: Option<Time>,
    offset: Option<UtcOffset>,
) -> Result<usize, Format>
Expand description

Format the provided component into the designated output. An Err will be returned if the component requires information that it does not provide or if the value cannot be output to the stream.