public interface XMPDateTime
extends java.lang.Comparable
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:
TimeZone
-object.
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
getCalendar() |
int |
getDay() |
int |
getHour() |
java.lang.String |
getISO8601String() |
int |
getMinute() |
int |
getMonth() |
int |
getNanoSecond() |
int |
getSecond() |
java.util.TimeZone |
getTimeZone() |
int |
getYear() |
void |
setDay(int day) |
void |
setHour(int hour) |
void |
setMinute(int minute) |
void |
setMonth(int month) |
void |
setNanoSecond(int nanoSecond) |
void |
setSecond(int second) |
void |
setTimeZone(java.util.TimeZone tz) |
void |
setYear(int year) |
int getYear()
void setYear(int year)
year
- Sets the yearint getMonth()
void setMonth(int month)
month
- Sets the month 1..12int getDay()
void setDay(int day)
day
- Sets the day 1..31int getHour()
void setHour(int hour)
hour
- Sets the hour in the range 0..23.int getMinute()
void setMinute(int minute)
minute
- Sets the minute in the range 0..59.int getSecond()
void setSecond(int second)
second
- Sets the second in the range 0..59.int getNanoSecond()
void setNanoSecond(int nanoSecond)
nanoSecond
- Sets the milli-, micro- and nano seconds.
Granularity goes down to milli seconds.java.util.TimeZone getTimeZone()
void setTimeZone(java.util.TimeZone tz)
tz
- a time zone to setjava.util.Calendar getCalendar()
Calendar
(only with milli second precision). java.lang.String getISO8601String()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"