XmpDateTimeImpl
XmpDateTimeImpl Public class
Description
The implementation of ...
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.xmp.impl
iTextSharp.xmp.impl.XmpDateTimeImpl[[XmpDateTimeImpl]]
end
subgraph iTextSharp.xmp
iTextSharp.xmp.IXmpDateTime[[IXmpDateTime]]
class iTextSharp.xmp.IXmpDateTime interfaceStyle;
end
subgraph System
System.IComparable[[IComparable]]
end
iTextSharp.xmp.IXmpDateTime --> iTextSharp.xmp.impl.XmpDateTimeImpl
System.IComparable --> iTextSharp.xmp.IXmpDateTime
Members
Properties
Public properties
Type | Name | Methods |
---|---|---|
XmpCalendar | Calendar | get |
int | Day | get, set |
int | Hour | get, set |
string | Iso8601String | get |
int | Minute | get, set |
int | Month | get, set |
int | NanoSecond | get, set |
int | Second | get, set |
TimeZone | TimeZone | get, set |
int | Year | get, set |
Methods
Public methods
Returns | Name |
---|---|
int | CompareTo (object dt) |
bool | HasDate () |
bool | HasTime () |
bool | HasTimeZone () |
string | ToString () |
Details
Summary
The implementation of
XMPDateTime
. Internally a
calendar
is used plus an additional nano seconds field, because
Calendar
supports only milli seconds. The
nanoSeconds
Inheritance
-
IXmpDateTime
IComparable
Constructors
XmpDateTimeImpl [1/4]
public XmpDateTimeImpl()
Summary
Creates an
XMPDateTime
XmpDateTimeImpl [2/4]
public XmpDateTimeImpl(XmpCalendar calendar)
Arguments
Type | Name | Description |
---|---|---|
XmpCalendar | calendar | a ... |
Summary
Creates an
XMPDateTime
XmpDateTimeImpl [3/4]
public XmpDateTimeImpl(DateTime date, TimeZone timeZone)
Arguments
Type | Name | Description |
---|---|---|
DateTime | date | a date describing an absolute point in time |
TimeZone | timeZone | a TimeZone how to interpret the date |
Summary
Creates an
XMPDateTime
-instance from a
Date
and a
TimeZone
XmpDateTimeImpl [4/4]
public XmpDateTimeImpl(string strValue)
Arguments
Type | Name | Description |
---|---|---|
string | strValue | an ISO 8601 string |
Summary
Creates an
XMPDateTime
Exceptions
Name | Description |
---|---|
XmpException | If the string is a non-conform ISO 8601 string, an exception is thrown |
Methods
CompareTo
public virtual int CompareTo(object dt)
Arguments
Type | Name | Description |
---|---|---|
object | dt |
HasDate
public virtual bool HasDate()
HasTime
public virtual bool HasTime()
HasTimeZone
public virtual bool HasTimeZone()
ToString
public override string ToString()
Returns
Returns the ISO string representation.
Properties
Year
public virtual int Year { get; set; }
Month
public virtual int Month { get; set; }
Day
public virtual int Day { get; set; }
Hour
public virtual int Hour { get; set; }
Minute
public virtual int Minute { get; set; }
Second
public virtual int Second { get; set; }
NanoSecond
public virtual int NanoSecond { get; set; }
TimeZone
public virtual TimeZone TimeZone { get; set; }
Calendar
public virtual XmpCalendar Calendar { get; }
Iso8601String
public virtual string Iso8601String { get; }
Generated with ModularDoc