public final class ISOTime extends LcTime
Valid ISO8601/XFA time strings are in any one of the following time patterns:
LcTime for the meaning of the various metasymbols used above.
Here's a snippet of code illustrating the use of
ISOTime to reformat an ISO8601/XFA time string
import com.adobe.xfa.ut.ISOTime;
import com.adobe.xfa.ut.LcTime;
...
ISOTime t = new ISOTime("11:12:13-05:00", "");
fString s = "Unknown";
if (t.isValid())
s = t.format(LcTime.XFA_TIME_FMT1);
System.out.println(s);
DEFAULT_TIME_FMT, MILLISPERDAY, MILLISPERHOUR, MILLISPERMINUTE, MILLISPERSECOND, TIME_FMT1, TIME_FMT2, TIME_PICTURE_SYMBOLS| Constructor and Description |
|---|
ISOTime()
Instantiate an ISOTime object from today's time.
|
ISOTime(int millis)
Instantiate an ISOTime object from the given number of milliseconds
from the epoch.
|
ISOTime(String locale,
int centurySplit)
Instantiate an ISOTime object from today's time given a locale string
and a possible century split year.
|
ISOTime(String time,
String locale)
Instantiate an ISOTime object from the given time string.
|
add, asgn, format, getDays, getHour, getLocalTimeFormat, getMillis, getMilliSecond, getMinute, getSecond, getTimeFormat, getTimeZone, isValid, setGMTime, setLocalTime, toStringpublic ISOTime()
public ISOTime(int millis)
millis - the number of milliseconds from epoch.public ISOTime(String locale, int centurySplit)
locale - a locale string. When empty, it will default
to the current locale.centurySplit - a century split year.Copyright © 2010 - 2020 Adobe. All Rights Reserved