struct Hpdf::Date

Overview

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

Defined in:

hpdf/date.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(time : Time) #

Create a date based on the passed time


[View source]

Class Method Detail

def self.parse(time_str : String) : Time #

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


[View source]

Instance Method Detail

def to_unsafe : LibHaru::Date #

[View source]