SetaPDF_Signer_Asn1_Time Helper class to decode UTCTime and GeneralizedTime structures.

File: /SetaPDF v2/Signer/Asn1/Time.php

Class hierarchy

Summary

Static Methods

_createDateTime()

private static SetaPDF_Signer_Asn1_Time::_createDateTime (
array $matches
): DateTime

Create a DateTime object based on matched values.

Parameters
$matches : array
 

decode()

Decodes a ASN.1 Time value into a DateTime object.

Parameters
$time : SetaPDF_Signer_Asn1_Element
 

parseGeneralizedTime()

Parses an GeneralizedTime value into a DateTime object.

Parameters
$s : string
 

parseUtcTime()

public static SetaPDF_Signer_Asn1_Time::parseUtcTime (
string $s
): DateTime

Parses an UTCTime value into a DateTime object.

Parameters
$s : string