iText 8.0.2 API
|
A factory to create More...
Static Public Member Functions |
|
static XMPDateTime | CreateFromCalendar (XMPCalendar calendar) |
Creates an More... |
|
static XMPDateTime | Create () |
Creates an empty More... |
|
static XMPDateTime | Create (int year, int month, int day) |
Creates an More... |
|
static XMPDateTime | Create (int year, int month, int day, int hour, int minute, int second, int nanoSecond) |
Creates an More... |
|
static XMPDateTime | CreateFromISO8601 (String strValue) |
Creates an More... |
|
static XMPDateTime | GetCurrentDateTime () |
Obtain the current date and time. More... |
|
static XMPDateTime | SetLocalTimeZone (XMPDateTime 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. More... |
|
static XMPDateTime | ConvertToUTCTime (XMPDateTime dateTime) |
Make sure a time is UTC. More... |
|
static XMPDateTime | ConvertToLocalTime (XMPDateTime dateTime) |
Make sure a time is local. More... |
|
A factory to create
XMPDateTime
-instances from a Calendar
or an ISO 8601 string or for the current time.
|
inlinestatic |
Make sure a time is local.
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.
dateTime | the
XMPDateTime
|
|
inlinestatic |
Make sure a time is UTC.
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.
dateTime | the
XMPDateTime
|
|
inlinestatic |
|
inlinestatic |
Creates an
XMPDateTime
-object from initial values.
year | years |
month | months from 1 to 12 Note: Remember that the month in System.DateTime is defined from 0 to 11. |
day | days |
|
inlinestatic |
Creates an
XMPDateTime
-object from initial values.
year | years |
month | months from 1 to 12 Note: Remember that the month in System.DateTime is defined from 0 to 11. |
day | days |
hour | hours |
minute | minutes |
second | seconds |
nanoSecond | nanoseconds |
|
inlinestatic |
Creates an
XMPDateTime
from a Calendar
-object.
calendar | a
Calendar
|
|
inlinestatic |
Creates an
XMPDateTime
from an ISO 8601 string.
strValue | The ISO 8601 string representation of the date/time. |
|
inlinestatic |
Obtain the current date and time.
|
inlinestatic |
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.
dateTime | the
XMPDateTime
|