C# Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ConvertToLocalTime() публичный статический Метод

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.
Результат IXmpDateTime

ConvertToUtcTime() публичный статический Метод

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.
Результат IXmpDateTime

Create() публичный статический Метод

Creates an empty XMPDateTime-object.
public static Create ( ) : IXmpDateTime
Результат IXmpDateTime

Create() публичный статический Метод

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
Результат IXmpDateTime

Create() публичный статический Метод

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
Результат IXmpDateTime

CreateFromCalendar() публичный статический Метод

Creates an XMPDateTime from a Calendar-object.
public static CreateFromCalendar ( XmpCalendar calendar ) : IXmpDateTime
calendar XmpCalendar a Calendar-object.
Результат IXmpDateTime

CreateFromIso8601() публичный статический Метод

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.
Результат IXmpDateTime

SetLocalTimeZone() публичный статический Метод

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.
Результат IXmpDateTime