Skip to main content
Skip table of contents

XmpDateTimeFactory

XmpDateTimeFactory Public class

Description

A factory to create ...

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.xmp
  iTextSharp.xmp.XmpDateTimeFactory[[XmpDateTimeFactory]]
  end

Members

Properties

Public Static properties
TypeNameMethods
IXmpDateTimeCurrentDateTime
Obtain the current date and time.
get

Methods

Public Static methods
ReturnsName
IXmpDateTimeConvertToLocalTime(IXmpDateTime dateTime)
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.
IXmpDateTimeConvertToUtcTime(IXmpDateTime dateTime)
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.
IXmpDateTimeCreate(...)
Creates an empty ...
IXmpDateTimeCreateFromCalendar(XmpCalendar calendar)
Creates an ...
IXmpDateTimeCreateFromIso8601(string strValue)
Creates an ...
IXmpDateTimeSetLocalTimeZone(IXmpDateTime dateTime)
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.

Details

Summary

A factory to create

XMPDateTime

-instances from a

Calendar

Methods

CreateFromCalendar

Source code

public static IXmpDateTime CreateFromCalendar(XmpCalendar calendar)
Arguments
TypeNameDescription
XmpCalendarcalendara ...
Summary

Creates an

XMPDateTime

from a

Calendar
Returns

An

XMPDateTime
Create [1/3]

Source code

public static IXmpDateTime Create()
Summary

Creates an empty

XMPDateTime
Returns

Returns an

XMPDateTime
Create [2/3]

Source code

public static IXmpDateTime Create(int year, int month, int day)
Arguments
TypeNameDescription
intyear
intmonth
intday
Create [3/3]

Source code

public static IXmpDateTime Create(int year, int month, int day, int hour, int minute, int second, int nanoSecond)
Arguments
TypeNameDescription
intyear
intmonth
intday
inthour
intminute
intsecond
intnanoSecond
CreateFromIso8601

Source code

public static IXmpDateTime CreateFromIso8601(string strValue)
Arguments
TypeNameDescription
stringstrValueThe ISO 8601 string representation of the date/time.
Summary

Creates an

XMPDateTime
Returns

An

XMPDateTime
Exceptions
NameDescription
XmpExceptionWhen the ISO 8601 string is non-conform
SetLocalTimeZone

Source code

public static IXmpDateTime SetLocalTimeZone(IXmpDateTime dateTime)
Arguments
TypeNameDescription
IXmpDateTimedateTimethe ...
Summary

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.

Returns

Returns an updated

XMPDateTime
ConvertToUtcTime

Source code

public static IXmpDateTime ConvertToUtcTime(IXmpDateTime dateTime)
Arguments
TypeNameDescription
IXmpDateTimedateTimethe ...
Summary

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.

Returns

Returns an updated

XMPDateTime
ConvertToLocalTime

Source code

public static IXmpDateTime ConvertToLocalTime(IXmpDateTime dateTime)
Arguments
TypeNameDescription
IXmpDateTimedateTimethe ...
Summary

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.

Returns

Returns an updated

XMPDateTime

Properties

CurrentDateTime
public static IXmpDateTime CurrentDateTime { get; }
Summary

Obtain the current date and time.

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.