The time type.
Internally this is merely a UNIX timestamp: a count of non-leap seconds since the start of 1970. This type exists to assist unit-of-measure correctness.
pub fn try_from(time: SystemTime) -> Result<Time, Unspecified>[src]
webpki::Time from a
This will be replaced with a real
TryFrom is added to Rust Stable.
webpki::Time from the current system time:
#[cfg(feature = "std")] let time = webpki::Time::try_from(std::time::SystemTime::now())?;
pub fn from_seconds_since_unix_epoch(secs: u64) -> Time[src]
webpki::Time from a unix timestamp.
It is usually better to use the less error-prone
webpki::Time::try_from(time: &std::time::SystemTime) instead when
std::time::SystemTime is available (when
#![no_std] isn't being
impl PartialOrd<Time> for Time[src]
pub fn partial_cmp(&self, other: &Time) -> Option<Ordering>[src]
impl StructuralPartialEq for Time[src]
impl RefUnwindSafe for Time
impl UnwindSafe for Time
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.