public final class XmpDate extends XmpTypeBase
Represents Date in XMP packet.
A date-time value is represented using a subset of the formats as defined in Date and Time Formats: YYYY YYYY-MM YYYY-MM-DD YYYY-MM-DDThh:mmTZD YYYY-MM-DDThh:mm:ssTZD YYYY-MM-DDThh:mm:ss.sTZD
Modifier and Type | Field and Description |
---|---|
static String |
Iso8601Format
The ISO 8601 (roundtrip) format string.
|
Constructor and Description |
---|
XmpDate(Date dateTime)
Initializes a new instance of the
XmpDate class. |
XmpDate(String dateString)
Initializes a new instance of the
XmpDate class. |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Gets format string for current value.
|
Date |
getValue()
Gets value.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
void |
setValue(Date value)
Sets value.
|
String |
toString()
Returns a
System.String that represents this instance. |
toBool, toDateTime, toFloat, toGuid, toInt, toStringArray
public static final String Iso8601Format
The ISO 8601 (roundtrip) format string.
public XmpDate(Date dateTime)
Initializes a new instance of the XmpDate
class.
dateTime
- DateTime
value.public XmpDate(String dateString)
Initializes a new instance of the XmpDate
class.
dateString
- Date in string representation.com.aspose.ms.System.ArgumentException
- Invalid date format.public final Date getValue()
Gets value.
public final void setValue(Date value)
Sets value.
value
- DateTime value.public final String getFormat()
Gets format string for current value.
public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpTypeBase
string
contained XMP representation.public String toString()
Returns a System.String
that represents this instance.
toString
in class XmpValueBase
System.String
that represents this instance.Copyright © 2018. All rights reserved.