Documentation

GeneralizedTime extends AbstractTime
in package
implements Parsable

This ASN.1 universal type contains date and time information according to ISO 8601.

The type consists of values representing: a) a calendar date, as defined in ISO 8601; and b) a time of day, to any of the precisions defined in ISO 8601, except for the hours value 24 which shall not be used; and c) the local time differential factor as defined in ISO 8601.

Decoding of this type will accept the Basic Encoding Rules (BER) The encoding will comply with the Distinguished Encoding Rules (DER).

Interfaces, Classes, Traits and Enums

Parsable
The Parsable interface describes classes that can be parsed from their binary DER representation.

Table of Contents

$value  : DateTime
$contentLength  : mixed
$microseconds  : mixed
$nrOfLengthOctets  : mixed
__construct()  : mixed
__toString()  : mixed
containsFractionalSecondsElement()  : mixed
fromBinary()  : static
Parse an instance of this class from its binary DER encoded representation.
getBinary()  : string
Encode this object using DER encoding.
getContent()  : mixed
Return the content of this object in a non encoded form.
getIdentifier()  : string
Returns all identifier octets. If an inheriting class models a tag with the long form identifier format, it MUST reimplement this method to return all octets of the identifier.
getObjectLength()  : mixed
Returns the length of the whole object (including the identifier and length octets).
getType()  : mixed
getTypeName()  : mixed
Returns the name of the ASN.1 Type of this object.
calculateContentLength()  : mixed
extractTimeZoneData()  : mixed
getContentLength()  : mixed
getEncodedValue()  : mixed
getLastDateTimeErrors()  : mixed
getNumberOfLengthOctets()  : mixed
parseBinaryIdentifier()  : mixed
parseContentLength()  : mixed
parseIdentifier()  : mixed
setContentLength()  : mixed
createLengthPart()  : mixed

Properties

$nrOfLengthOctets

private mixed $nrOfLengthOctets

Methods

__construct()

public __construct([mixed $dateTime = null ][, mixed $dateTimeZone = 'UTC' ]) : mixed
Parameters
$dateTime : mixed = null
$dateTimeZone : mixed = 'UTC'
Return values
mixed

containsFractionalSecondsElement()

public containsFractionalSecondsElement() : mixed
Return values
mixed

fromBinary()

Parse an instance of this class from its binary DER encoded representation.

public static fromBinary(mixed &$binaryData[, mixed &$offsetIndex = 0 ]) : static
Parameters
$binaryData : mixed
$offsetIndex : mixed = 0

the offset at which parsing of the $binaryData is started. This parameter ill be modified to contain the offset index of the next object after this object has been parsed

Return values
static

getBinary()

Encode this object using DER encoding.

public getBinary() : string
Return values
string

the full binary representation of the complete object

getContent()

Return the content of this object in a non encoded form.

public abstract getContent() : mixed

This can be used to print the value in human readable form.

Return values
mixed

getIdentifier()

Returns all identifier octets. If an inheriting class models a tag with the long form identifier format, it MUST reimplement this method to return all octets of the identifier.

public getIdentifier() : string
Tags
throws
LogicException

If the identifier format is long form

Return values
string

Identifier as a set of octets

getObjectLength()

Returns the length of the whole object (including the identifier and length octets).

public getObjectLength() : mixed
Return values
mixed

getTypeName()

Returns the name of the ASN.1 Type of this object.

public getTypeName() : mixed
Tags
see
Identifier::getName()
Return values
mixed

calculateContentLength()

protected calculateContentLength() : mixed
Return values
mixed

extractTimeZoneData()

protected static extractTimeZoneData(mixed &$binaryData, mixed &$offsetIndex, DateTime $dateTime) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed
$dateTime : DateTime
Return values
mixed

getContentLength()

protected getContentLength() : mixed
Return values
mixed

getEncodedValue()

protected getEncodedValue() : mixed
Return values
mixed

getLastDateTimeErrors()

protected getLastDateTimeErrors() : mixed
Return values
mixed

getNumberOfLengthOctets()

protected getNumberOfLengthOctets([mixed $contentLength = null ]) : mixed
Parameters
$contentLength : mixed = null
Return values
mixed

parseBinaryIdentifier()

protected static parseBinaryIdentifier(mixed $binaryData, mixed &$offsetIndex) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed
Return values
mixed

parseContentLength()

protected static parseContentLength(mixed &$binaryData, mixed &$offsetIndex[, mixed $minimumLength = 0 ]) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed
$minimumLength : mixed = 0
Return values
mixed

parseIdentifier()

protected static parseIdentifier(mixed $identifierOctet, mixed $expectedIdentifier, mixed $offsetForExceptionHandling) : mixed
Parameters
$identifierOctet : mixed
$expectedIdentifier : mixed
$offsetForExceptionHandling : mixed
Return values
mixed

setContentLength()

protected setContentLength(mixed $newContentLength) : mixed
Parameters
$newContentLength : mixed
Return values
mixed

createLengthPart()

private createLengthPart() : mixed
Return values
mixed

Search results