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§
Sourcefn into_timestamp(self) -> String
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
impl IntoTimestamp for &str
fn into_timestamp(self) -> String
Source§impl IntoTimestamp for String
impl IntoTimestamp for String
fn into_timestamp(self) -> String
Source§impl<Tz: TimeZone> IntoTimestamp for DateTime<Tz>
Available on crate feature chrono only.
impl<Tz: TimeZone> IntoTimestamp for DateTime<Tz>
Available on crate feature
chrono only.