Name
doc:SetInfoDateAttr -- set a datetime attribute in info dictionary
Synopsis
status = doc:SetInfoDateAttr(type, value)
Function
doc:SetInfoDateAttr() sets a datetime attribute in the info dictionary. type must be one of the following constants:

#HPDF_INFO_CREATION_DATE:
Document's creation date

#HPDF_INFO_MOD_DATE:
Document's last modification date

value must be a table containing a datetime description. The table must contain the following fields:

Day:
Between 1 and 31 (depends on the month).

Month:
Between 1 and 12.

Year:
The year.

Hour:
Between 0 and 23.

Minutes:
Between 0 and 59.

Seconds:
Between 0 and 59.

Ind:
Relationship of local time to Universal Time. This can be " ", "+", "-", or "Z".

Off_Hour:
If ind is not space, 0 to 23 is valid. Otherwise, ignored.

Off_Minutes:
If ind is not space, 0 to 59 is valid. Otherwise, ignored.

Inputs
type
one of the constants listed above
value
table containing a datetime description
Results
status
status code

Show TOC