C# Class iTextSharp.xmp.XmpDateTimeFactory

A factory to create XMPDateTime-instances from a Calendar or an ISO 8601 string or for the current time. @since 16.02.2006
Exibir arquivo Open project: nonorganic/dssnet

Public Methods

Method Description
ConvertToLocalTime ( IXmpDateTime dateTime ) : IXmpDateTime

Make sure a time is local. If the time zone is not the local zone, the time is adjusted and the time zone set to be local.

ConvertToUtcTime ( IXmpDateTime dateTime ) : IXmpDateTime

Make sure a time is UTC. If the time zone is not UTC, the time is adjusted and the time zone set to be UTC.

Create ( ) : IXmpDateTime

Creates an empty XMPDateTime-object.

Create ( int year, int month, int day ) : IXmpDateTime

Creates an XMPDateTime-object from initial values.

Create ( int year, int month, int day, int hour, int minute, int second, int nanoSecond ) : IXmpDateTime

Creates an XMPDateTime-object from initial values.

CreateFromCalendar ( XmpCalendar calendar ) : IXmpDateTime

Creates an XMPDateTime from a Calendar-object.

CreateFromIso8601 ( string strValue ) : IXmpDateTime

Creates an XMPDateTime from an ISO 8601 string.

SetLocalTimeZone ( IXmpDateTime dateTime ) : IXmpDateTime

Sets the local time zone without touching any other Any existing time zone value is replaced, the other date/time fields are not adjusted in any way.

Method Details

ConvertToLocalTime() public static method

Make sure a time is local. If the time zone is not the local zone, the time is adjusted and the time zone set to be local.
public static ConvertToLocalTime ( IXmpDateTime dateTime ) : IXmpDateTime
dateTime IXmpDateTime the XMPDateTime variable containing the time to be modified.
return IXmpDateTime

ConvertToUtcTime() public static method

Make sure a time is UTC. If the time zone is not UTC, the time is adjusted and the time zone set to be UTC.
public static ConvertToUtcTime ( IXmpDateTime dateTime ) : IXmpDateTime
dateTime IXmpDateTime /// the XMPDateTime variable containing the time to /// be modified.
return IXmpDateTime

Create() public static method

Creates an empty XMPDateTime-object.
public static Create ( ) : IXmpDateTime
return IXmpDateTime

Create() public static method

Creates an XMPDateTime-object from initial values.
public static Create ( int year, int month, int day ) : IXmpDateTime
year int years
month int months from 1 to 12
/// Note: Remember that the month in is defined from 0 to 11.
day int days
return IXmpDateTime

Create() public static method

Creates an XMPDateTime-object from initial values.
public static Create ( int year, int month, int day, int hour, int minute, int second, int nanoSecond ) : IXmpDateTime
year int years
month int months from 1 to 12
/// Note: Remember that the month in is defined from 0 to 11.
day int days
hour int hours
minute int minutes
second int seconds
nanoSecond int nanoseconds
return IXmpDateTime

CreateFromCalendar() public static method

Creates an XMPDateTime from a Calendar-object.
public static CreateFromCalendar ( XmpCalendar calendar ) : IXmpDateTime
calendar XmpCalendar a Calendar-object.
return IXmpDateTime

CreateFromIso8601() public static method

Creates an XMPDateTime from an ISO 8601 string.
When the ISO 8601 string is non-conform
public static CreateFromIso8601 ( string strValue ) : IXmpDateTime
strValue string The ISO 8601 string representation of the date/time.
return IXmpDateTime

SetLocalTimeZone() public static method

Sets the local time zone without touching any other Any existing time zone value is replaced, the other date/time fields are not adjusted in any way.
public static SetLocalTimeZone ( IXmpDateTime dateTime ) : IXmpDateTime
dateTime IXmpDateTime the XMPDateTime variable containing the value to be modified.
return IXmpDateTime