fn write_timestamp(writer: &mut dyn Write, quote: &str, timestamp: &DateTime<ArcTz>) -> Result<(), Error> {
    write!(
        writer,
        "{}{:04}-{:02}-{:02} {:02}:{:02}:{:02}",
        quote,
        timestamp.year(),
        timestamp.month(),
        timestamp.day(),
        timestamp.hour(),
        timestamp.minute(),
        timestamp.second(),
    )?;
    let ns = timestamp.nanosecond();
    if ns != 0 {
        write!(writer, ".{:06}", ns / 1000)?;
    }
    writer.write_all(quote.as_bytes())
}
/// Writes a timestamp in ISO 8601 format.
Writes a timestamp in ISO 8601 format.
Writes a timestamp in ISO 8601 format .
fn write_timestamp(writer: &mut dyn Write, quote: &str, timestamp: &DateTime<ArcTz>) -> Result<(), Error> {
    write!(
        writer,
        "{}{:04}-{:02}-{:02} {:02}:{:02}:{:02}",
        quote,
        timestamp.year(),
        timestamp.month(),
        timestamp.day(),
        timestamp.hour(),
        timestamp.minute(),
        timestamp.second(),
    )?;
    let ns = timestamp.nanosecond();
    if ns != 0 {
        write!(writer, ".{:06}", ns / 1000)?;
    }
    writer.write_all(quote.as_bytes())
}
fn write_timestamp ( writer : & mut dyn Write , quote : & str , timestamp : & DateTime < ArcTz > ) -> Result < ( ) , Error > { write ! ( writer " " quote timestamp year ( ) timestamp month ( ) timestamp day ( ) timestamp hour ( ) timestamp minute ( ) timestamp second ( ) ) ? ; let ns = timestamp . nanosecond ( ) ; if ns != 0 { write ! ( writer " " ns 1000 ) ? ; } writer . write_all ( quote . as_bytes ( ) ) }
Writes a timestamp in ISO 8601 format.
Writes a timestamp in ISO 8601 format .
writer
&mut dyn Write
quote
&str
timestamp
&DateTime<ArcTz>
writer
&mut dyn Write
quote
&str
timestamp
&DateTime<ArcTz>