[#ASN1_TIME_set] = ASN1_TIME_set :mrdocs: Set an ASN.1 Time to the given POSIX time (UTCTime or GeneralizedTime). == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:ASN1_TIME.adoc[ASN1_TIME]* ASN1_TIME_set( xref:ASN1_TIME.adoc[ASN1_TIME]* s, time_t t); ---- == Return Value The updated or newly allocated ASN1_TIME, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *s* | Existing ASN1_TIME to reuse, or NULL to allocate. | *t* | POSIX time to store. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#