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>
Available on crate feature formatting only.
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.