iText 8.0.2 API
|
The XMPDateTime
-class represents a point in time up to a resolution of nano seconds. More...
Public Member Functions |
|||
int | GetYear () | ||
|
|||
void | SetYear (int year) | ||
|
|||
int | GetMonth () | ||
|
|||
void | SetMonth (int month) | ||
|
|||
int | GetDay () | ||
|
|||
void | SetDay (int day) | ||
|
|||
int | GetHour () | ||
|
|||
void | SetHour (int hour) | ||
|
|||
int | GetMinute () | ||
|
|||
void | SetMinute (int minute) | ||
|
|||
int | GetSecond () | ||
|
|||
void | SetSecond (int second) | ||
|
|||
int | GetNanoSecond () | ||
void | SetNanoSecond (int nanoSecond) | ||
TimeZoneInfo | GetTimeZone () | ||
|
|||
void | SetTimeZone (TimeZoneInfo tz) | ||
|
|||
bool | HasDate () | ||
This flag is set either by parsing or by setting year, month or day. More... |
|||
bool | HasTime () | ||
This flag is set either by parsing or by setting hours, minutes, seconds or milliseconds. More... |
|||
bool | HasTimeZone () | ||
This flag is set either by parsing or by setting hours, minutes, seconds or milliseconds. More... |
|||
XMPCalendar | GetCalendar () | ||
String | GetIso8601String () | ||
|
|||
The XMPDateTime
-class represents a point in time up to a resolution of nano seconds.
The XMPDateTime
-class represents a point in time up to a resolution of nano seconds. Dates and time in the serialized XMP are ISO 8601 strings. There are utility functions to convert to the ISO format, a Calendar
or get the Timezone. The fields of XMPDateTime
are:
DateTime values are occasionally used in cases with only a date or only a time component. A date without a time has zeros for all the time fields. A time without a date has zeros for all date fields (year, month, and day).
XMPCalendar iText.Kernel.XMP.XMPDateTime.GetCalendar | ( | ) |
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.
int iText.Kernel.XMP.XMPDateTime.GetNanoSecond | ( | ) |
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.
bool iText.Kernel.XMP.XMPDateTime.HasDate | ( | ) |
This flag is set either by parsing or by setting year, month or day.
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.
bool iText.Kernel.XMP.XMPDateTime.HasTime | ( | ) |
This flag is set either by parsing or by setting hours, minutes, seconds or milliseconds.
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.
bool iText.Kernel.XMP.XMPDateTime.HasTimeZone | ( | ) |
This flag is set either by parsing or by setting hours, minutes, seconds or milliseconds.
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.
void iText.Kernel.XMP.XMPDateTime.SetNanoSecond | ( | int | nanoSecond | ) |
nanoSecond | Sets the milli-, micro- and nano seconds. Granularity goes down to milli seconds. |
Implemented in iText.Kernel.XMP.Impl.XMPDateTimeImpl.