com.lowagie.text.pdf
Class PdfDate
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfString
com.lowagie.text.pdf.PdfDate
- class PdfDate
- extends PdfString
PdfDate
is the PDF date object.
PDF defines a standard date format. The PDF date format closely follows the format
defined by the international standard ASN.1 (Abstract Syntax Notation One, defined
in CCITT X.208 or ISO/IEC 8824). A date is a PdfString
of the form:
(D: YYYYMMDDHHmmSSOHH'mm')
This object is described in the 'Portable Document Format Reference Manual version 1.3'
section 7.2 (page 183-184)
- See Also:
PdfString
,
GregorianCalendar
Fields inherited from class com.lowagie.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary |
(package private) |
PdfDate()
Constructs a PdfDate -object, representing the current day and time. |
(package private) |
PdfDate(GregorianCalendar d)
Constructs a PdfDate -object. |
Method Summary |
private String |
setLength(int i,
int length)
Adds a number of leading zeros to a given String in order to get a String
of a certain length. |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, type |
PdfDate
PdfDate(GregorianCalendar d)
- Constructs a
PdfDate
-object.
- Parameters:
d
- the date that has to be turned into a PdfDate
-object
PdfDate
PdfDate()
- Constructs a
PdfDate
-object, representing the current day and time.
setLength
private String setLength(int i,
int length)
- Adds a number of leading zeros to a given
String
in order to get a String
of a certain length.
- Parameters:
i
- a given numberlength
- the length of the resulting String
- Returns:
- the resulting
String