C# Class iTextSharp.xmp.impl.XmpDateTimeImpl

The implementation of XMPDateTime. Internally a calendar is used plus an additional nano seconds field, because Calendar supports only milli seconds. The nanoSeconds convers only the resolution beyond a milli second. @since 16.02.2006
Inheritance: XMPDateTime
显示文件 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
CompareTo ( object dt ) : int
HasDate ( ) : bool
HasTime ( ) : bool
HasTimeZone ( ) : bool
ToString ( ) : string
XmpDateTimeImpl ( ) : System

Creates an XMPDateTime-instance with the current time in the default time zone.

XmpDateTimeImpl ( System.DateTime date, TimeZone timeZone ) : System

Creates an XMPDateTime-instance from a Date and a TimeZone.

XmpDateTimeImpl ( XMPCalendar calendar ) : System

Creates an XMPDateTime-instance from a calendar.

XmpDateTimeImpl ( string strValue ) : System

Creates an XMPDateTime-instance from an ISO 8601 string.

Method Details

CompareTo() public method

public CompareTo ( object dt ) : int
dt object
return int

HasDate() public method

public HasDate ( ) : bool
return bool

HasTime() public method

public HasTime ( ) : bool
return bool

HasTimeZone() public method

public HasTimeZone ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string

XmpDateTimeImpl() public method

Creates an XMPDateTime-instance with the current time in the default time zone.
public XmpDateTimeImpl ( ) : System
return System

XmpDateTimeImpl() public method

Creates an XMPDateTime-instance from a Date and a TimeZone.
public XmpDateTimeImpl ( System.DateTime date, TimeZone timeZone ) : System
date System.DateTime a date describing an absolute point in time
timeZone System.TimeZone a TimeZone how to interpret the date
return System

XmpDateTimeImpl() public method

Creates an XMPDateTime-instance from a calendar.
public XmpDateTimeImpl ( XMPCalendar calendar ) : System
calendar XMPCalendar a Calendar
return System

XmpDateTimeImpl() public method

Creates an XMPDateTime-instance from an ISO 8601 string.
If the string is a non-conform ISO 8601 string, an exception is thrown
public XmpDateTimeImpl ( string strValue ) : System
strValue string an ISO 8601 string
return System