Trait thetime::IntTime

source ·
pub trait IntTime: Display {
    // Provided method
    fn from_unix<T: Time>(&self) -> T
       where Self: Display { ... }
}

Provided Methods§

source

fn from_unix<T: Time>(&self) -> T
where Self: Display,

Convert an integer into a time struct of choice

Examples
use thetime::{System, Ntp, Time, IntTime};
println!("2017 - {:#?}", 1483228800.from_unix::<System>());

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Display> IntTime for T