UNPKG

@syncfusion/ej2-pdf

Version:

Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.

25 lines (24 loc) 727 B
import { _PdfAbstractSyntaxElement } from '../asn1/abstract-syntax'; /** * Helper representing ASN.1 Time types (UTCTime/GeneralizedTime) and conversion utilities. * * @private */ export declare class _PdfX509Time { private _time; constructor(time: _PdfAbstractSyntaxElement); /** * Extract a trimmed universal time string from the ASN.1 time element. * * @private * @returns {string} RFC-style time string or undefined when unavailable. */ _getUniversalTime(): string; /** * Convert the ASN.1 time element into a JavaScript `Date` object (UTC). * * @private * @returns {Date} Parsed Date object or undefined if parsing fails. */ _toDate(): Date; }