pub(crate) fn format(instant: &Instant) -> String {
        if instant.subsecond_nanos == 0 {
            format!("{}", instant.seconds)
        } else {
            let mut result = format!("{}.{:0>9}", instant.seconds, instant.subsecond_nanos);
            remove_trailing_zeros(&mut result);
            result
        }
    }
/// Formats an `Instant` into the Smithy epoch seconds date-time format.
Formats an `Instant` into the Smithy epoch seconds date-time format.
Formats an ` Instant ` into the Smithy epoch seconds date - time format .
pub(crate) fn format(instant: &Instant) -> String {
        if instant.subsecond_nanos == 0 {
            format!("{}", instant.seconds)
        } else {
            let mut result = format!("{}.{:0>9}", instant.seconds, instant.subsecond_nanos);
            remove_trailing_zeros(&mut result);
            result
        }
    }
pub ( crate ) fn format ( instant : & Instant ) -> String { if instant . subsecond_nanos == 0 { format ! ( " " instant seconds ) } else { let mut result = format ! ( " " instant seconds instant subsecond_nanos ) ; remove_trailing_zeros ( & mut result ) ; result } }
Formats an `Instant` into the Smithy epoch seconds date-time format.
Formats an ` Instant ` into the Smithy epoch seconds date - time format .
instant
&Instant
instant
&Instant