Class XmpDate

Class XmpDate

名称: Aspose.Imaging.Xmp.Types.Basic 收藏: Aspose.Imaging.dll (25.4.0)

代表日期在XMP包中。

[JsonObject(MemberSerialization.OptIn)]
public sealed class XmpDate : XmpTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase XmpDate

Implements

IXmpType , ICloneable

继承人

XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

日期时间值以日期和时间格式中定义的格式的子组表示:YYYYYYYY-MMYYYY-MM-DDYYYY-MM-DDThh:mmTZDYYYY-MM-DDThh:mm:ssTZDYYYY-MM-DDThh:mm:ss.sTZD

Constructors

XmpDate(DateTime)

启动 Aspose.Imaging.Xmp.Types.Basic.XmpDate 类的新例子。

public XmpDate(DateTime dateTime)

Parameters

dateTime DateTime

日期时间值,使用ISO RFC 8601格式的子组表示。

XmpDate(线条)

启动 Aspose.Imaging.Xmp.Types.Basic.XmpDate 类的新例子。

public XmpDate(string dateString)

Parameters

dateString string

序列代表日期。

Exceptions

ArgumentException

无效日期格式;日期

Fields

Iso8601Format

ISO 8601 (roundtrip) 格式序列。

public const string Iso8601Format = "yyyy-MM-ddTHH:mm:ssZ"

领域价值

string

Remarks

查看更多: https://en.wikipedia.org/wiki/ISO_8601

Properties

Format

获取当前值的格式链。

public string Format { get; }

财产价值

string

Value

收到或设置日期值。

[JsonProperty]
public DateTime Value { get; set; }

财产价值

DateTime

Methods

GetXmpRepresentation()

返回在 XMP 格式中包含的序列值。

public override string GetXmpRepresentation()

Returns

string

返回包含 xmp 代表性的字符串

 中文