Lines Matching defs:Timestamp
42 /// x = "2018-02-16T00:31:37Z".parse::<humantime::Timestamp>().unwrap().into();
47 pub struct Timestamp(SystemTime);
79 impl AsRef<SystemTime> for Timestamp {
83 impl Deref for Timestamp {
88 impl Into<SystemTime> for Timestamp {
92 impl From<SystemTime> for Timestamp {
93 fn from(dur: SystemTime) -> Timestamp { Timestamp(dur) }
96 impl FromStr for Timestamp {
98 fn from_str(s: &str) -> Result<Timestamp, Self::Err> {
99 parse_rfc3339_weak(s).map(Timestamp)
103 impl fmt::Display for Timestamp {