XmpDate

Inheritance: java.lang.Object, com.aspose.psd.xmp.types.XmpTypeBase

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

Constructors

ConstructorDescription
XmpDate(Date dateTime)Initializes a new instance of the XmpDate class.
XmpDate(String dateString)Initializes a new instance of the XmpDate class.

Fields

FieldDescription
Iso8601FormatThe ISO 8601 (roundtrip) format string.

Methods

MethodDescription
create_internalized(System.DateTime dateTime)
equals(Object arg0)
getClass()
getFormat()Gets the format string for current value.
getValue()Gets or sets the date value.
getValue_internalized()
getXmpRepresentation()Returns string contained value in XMP format.
hashCode()
notify()
notifyAll()
setValue(Date value)Gets or sets the date value.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XmpDate(Date dateTime)

public XmpDate(Date dateTime)

Initializes a new instance of the XmpDate class.

Parameters:

ParameterTypeDescription
dateTimejava.util.DateA date-time value which is represented using a subset of ISO RFC 8601 formatting.

XmpDate(String dateString)

public XmpDate(String dateString)

Initializes a new instance of the XmpDate class.

Parameters:

ParameterTypeDescription
dateStringjava.lang.StringThe string representation of date.

Iso8601Format

public static final String Iso8601Format

The ISO 8601 (roundtrip) format string.

See more: https://en.wikipedia.org/wiki/ISO_8601.

create_internalized(System.DateTime dateTime)

public static XmpDate create_internalized(System.DateTime dateTime)

Parameters:

ParameterTypeDescription
dateTimecom.aspose.ms.System.DateTime

Returns: XmpDate

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFormat()

public String getFormat()

Gets the format string for current value.

Value: The format string for current value.

Returns: java.lang.String

getValue()

public Date getValue()

Gets or sets the date value.

Value: The date value.

Returns: java.util.Date

getValue_internalized()

public System.DateTime getValue_internalized()

Returns: com.aspose.ms.System.DateTime

getXmpRepresentation()

public String getXmpRepresentation()

Returns string contained value in XMP format.

Returns: java.lang.String - Returns string contained value in XMP format.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setValue(Date value)

public void setValue(Date value)

Gets or sets the date value.

Value: The date value.

Parameters:

ParameterTypeDescription
valuejava.util.Date

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int