struct Hpdf::Date
- Hpdf::Date
- Struct
- Value
- Object
Overview
Date that can be used with "Doc#creation_date=" and "Doc#mod_date="
Defined in:
hpdf/date.crConstant Summary
-
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
Class Method Summary
-
.parse(time_str : String) : Time
parses the pdf time format e.g.
Instance Method Summary
Constructor Detail
Class Method Detail
def self.parse(time_str : String) : Time
#
parses the pdf time format e.g. "D:20220729135612+02'00'"