Struct openssl::asn1::Asn1Time [−]
Time storage and comparison
Asn1Time should be used to store and share time information using certificates. If Asn1Time is set using a string, it must be in either YYMMDDHHMMSSZ, YYYYMMDDHHMMSSZ, or another ASN.1 format.
ASN_TIME_set documentation at OpenSSL explains the ASN.1 implementaiton used by OpenSSL.
Methods
impl Asn1Time
[src]
[−]
impl Asn1Time
pub fn days_from_now(days: u32) -> Result<Asn1Time, ErrorStack>
[src]
[−]
pub fn days_from_now(days: u32) -> Result<Asn1Time, ErrorStack>
Creates a new time on specified interval in days from now