XmpDate Class

Summary: Represents Date in XMP packet.

Module: aspose.imaging.xmp.types.basic

Full Name: aspose.imaging.xmp.types.basic.XmpDate

Inheritance: IXmpType, XmpTypeBase

Aspose.Imaging Version: 24.7.0

Constructors

NameDescription
XmpDate(date_string)Initializes a new instance of the XmpDate class.
XmpDate(date_time)Initializes a new instance of the XmpDate class.

Properties

NameTypeAccessDescription
ISO_8601_FORMAT [static]stringrThe ISO 8601 (roundtrip) format string.
formatstringrGets the format string for current value.
valuedatetimer/wGets or sets the date value.

Methods

NameDescription
get_xmp_representation()Returns string contained value in XMP format.

Constructor: XmpDate(date_string)

 XmpDate(date_string) 

Initializes a new instance of the XmpDate class.

Parameters:

ParameterTypeDescription
date_stringstringThe string representation of date.

Constructor: XmpDate(date_time)

 XmpDate(date_time) 

Initializes a new instance of the XmpDate class.

Parameters:

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

Method: get_xmp_representation()

 get_xmp_representation() 

Returns string contained value in XMP format.

Returns

TypeDescription
stringReturns string containing xmp representation