[][src]Trait sequoia_openpgp::conversions::Time

pub trait Time {
    fn from_pgp(_: u32) -> Self;
fn to_pgp(&self) -> Result<u32>;
fn canonicalize(self) -> Self; }

Conversions for OpenPGP time stamps.

Required methods

fn from_pgp(_: u32) -> Self

Converts an OpenPGP time stamp to broken-down time.

fn to_pgp(&self) -> Result<u32>

Converts broken-down time to an OpenPGP time stamp.

fn canonicalize(self) -> Self

Strips off any subseconds that OpenPGP cannot represent, and converts to UTC.

Loading content...

Implementations on Foreign Types

impl Time for Tm[src]

Loading content...

Implementors

Loading content...