struct

Hpdf::Date

Inherits Struct / Value / Object

Date that can be used with "Doc#creation_date=" and "Doc#mod_date="

Constants

FORMAT = /D:(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(([+-])(\d{2})'(\d{2})')?/

Constructors

new(time : Time)

Create a date based on the passed time

Source

Class methods

parse(time_str : String) : Time

parses the pdf time format e.g. "D:20220729135612+02'00'"

Source

Instance methods

to_unsafe
Source