Click or drag to resize

Date Class

Gets the creation date.
Set document's creation date.
Gets the mod date.
Set document's modification date.
The Date class is a utility class used to simplify work with PDF date objects. PDF defines a standard date format, which closely follows international standard ASN.1 (Abstract Syntax Notation One), A date is a string of the form (D:YYYYMMDDHHmmSSOHH'mm'); See PDF Reference Manual for details. Date can be associated with a SDF/Cos date string using Date(Obj*) constructor or later using Date::Attach(Obj*) or Date::Update(Obj*) methods. Date keeps a local date/time cache so it is necessary to call Date::Update() method if the changes to the Date should be saved in the attached Cos/SDF string.
Inheritance Hierarchy
SystemObject
  pdftron.PDFDate

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Date : IClosable

Return Value

Type: 
date and time the document was created, in human-readable form.

Return Value

Type: 
date and time the document was most recently modified, in human-readable form.

The Date type exposes the following members.

Constructors
  NameDescription
Public methodDate
Date default constructor.
Public methodDate(Date)
Creates a Date object from specified Date object
Public methodDate(Obj)
Create a Date and initialize it using given Cos/SDF string date object. String date object is attached to this Date.
Public methodDate(Int16, Byte, Byte, Byte, Byte, Byte)
Create a Date and initialize it using specified parameters. The Date is not attached to any Cos/SDF object.
Top
Properties
  NameDescription
Public propertyday
The day (01-31).
Public propertyhour
The hour (00-23).
Public propertyminute
The minute (00-59).
Public propertymonth
The month.
Public propertysecond
The second (00-59).
Public propertyUT
The relationship of local time to Universal Time (UT), denoted by one of the characters +, -, or Z
Public propertyUT_hour
The absolute value of the offset from UT in hours (00-23)
Public propertyUT_minutes
The absolute value of the offset from UT in minutes (00-59)
Public propertyyear
The year.
Top
Methods
  NameDescription
Public methodAttach
Attach the Cos/SDF object to the Date.
Public methodClose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValid
Indicates whether the Date is valid (non-null).
Public methodSet
Sets value to given Date object
Public methodSetCurrentTime
Sets the current time.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Saves changes made to the Date object in the attached (or specified) SDF/Cos string.
Public methodUpdate(Obj)
Update.
Top
See Also