public 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)
PdfString
, GregorianCalendar
, Serialized Form
encoding, hexWriting, objGen, objNum, originalValue, value
Constructor and Description |
---|
PdfDate()
Constructs a PdfDate -object, representing the current day and time.
|
PdfDate(Calendar d)
Constructs a PdfDate -object.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
decode(String s)
Converts a PDF string representing a date into a Calendar.
|
String |
getW3CDate()
Gives the W3C format of the PdfDate.
|
static String |
getW3CDate(String d)
Gives the W3C format of the PdfDate.
|
getBytes, getEncoding, getOriginalBytes, isHexWriting, setHexWriting, toPdf, toString, toUnicodeString
canBeInObjStm, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public PdfDate(Calendar d)
PdfDate
-object.
d
- the date that has to be turned into a PdfDate
-object
public PdfDate()
PdfDate
-object, representing the current day and time.
Copyright © 1998–2022. All rights reserved.