IntoTimestamp

Trait IntoTimestamp 

Source
pub trait IntoTimestamp {
    // Required method
    fn into_timestamp(self) -> String;
}
Expand description

Trait for types that can be converted to a timestamp string

This trait allows both chrono DateTime types and plain strings to be used as timestamps in the changelog API.

Required Methods§

Source

fn into_timestamp(self) -> String

Convert this value into a timestamp string in Debian changelog format

Implementations on Foreign Types§

Source§

impl IntoTimestamp for &str

Source§

impl IntoTimestamp for String

Source§

impl<Tz: TimeZone> IntoTimestamp for DateTime<Tz>
where Tz::Offset: Display,

Available on crate feature chrono only.

Implementors§