ASN1_UTCTIME_adj

Set an ASN1_UTCTIME from t adjusted by a day/second offset.

Synopsis

Declared in <openssl/asn1.h>

ASN1_UTCTIME*
ASN1_UTCTIME_adj(
    ASN1_UTCTIME* s,
    time_t t,
    int offset_day,
    long offset_sec);

Return Value

The UTCTIME on success (possibly newly allocated), or NULL on error.

Parameters

NameDescription
sExisting UTCTIME to reuse, or NULL to allocate a new one.
tBase calendar time (seconds since the Epoch).
offset_dayDays to add to t (may be negative).
offset_secSeconds to add after the day offset (may be negative).