Packages

 

com.aspose.cad.xmp.types.basic

Class XmpDate

  • All Implemented Interfaces:
    IXmpType


    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

    • Field Detail

      • ISO_8601_FORMAT

        public static final String ISO_8601_FORMAT

        The ISO 8601 (roundtrip) format string.


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

        See Also:
        Constant Field Values
    • Constructor Detail

      • XmpDate

        public XmpDate(Date dateTime)

        Initializes a new instance of the XmpDate class.

        Parameters:
        dateTime - A date-time value which is represented using a subset of ISO RFC 8601 formatting.
      • XmpDate

        public XmpDate(com.aspose.ms.System.DateTime dateTime)
      • XmpDate

        public XmpDate(String dateString)

        Initializes a new instance of the XmpDate class.

        Parameters:
        dateString - The string representation of date.
        Throws:
        com.aspose.ms.System.ArgumentException - Invalid date format;date
    • Method Detail

      • getValue

        public Date getValue()

        Gets or sets the date value.

        Returns:
        The date value.
      • getValue_internalized

        public com.aspose.ms.System.DateTime getValue_internalized()
      • setValue

        public void setValue(Date value)

        Gets or sets the date value.

        Parameters:
        value - The date value.
      • getFormat

        public String getFormat()

        Gets the format string for current value.

        Returns:
        The format string for current value.