module HexaPDF::DictionaryFields::DateConverter

Converter module for handling PDF date fields since they are stored as strings.

The ISO PDF specification differs from Adobe's specification in respect to the supported date format. When converting from a date string to a Time object, this is taken into account.

See: PDF1.7 s7.9.4, ADB1.7 3.8.3

Public Class Methods


A date field may contain a string in PDF format, or a Time, Date or DateTime object.


This converter is usable if the type is PDFDate.