| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
fipaos.util.UTCContainer | +--fipaos.util.UTCDuration
Extends UTCContainer - contains a duration specified in relative UTC
format (e.g. 1 hour = "+00000000T010000000")
Fields inherited from class fipaos.util.UTCContainer |
DATE, HOUR, MILLISECOND, MINUTE, MONTH, SECOND, YEAR |
Constructor Summary | |
UTCDuration(String duration) Constructs a UTCDuration based upon a string based upon the format +YYYYMMDDTHHmmSSuuu, where Y = year, M = month, D = date, H = hour m = minute, S = seconds and u = milliseconds | |
UTCDuration(int year, int month, int date, int hour, int minute, int second, int millisecond) Constructs a UTCDuration based upon the values given |
Method Summary | |
void | addDuration(String duration) |
void | addDuration(int year, int month, int date, int hour, int minute, int second, int millis) |
long | getDurationInMillis() Returns the number of milliseconds this duration represents - doesn't use the month or year field since months and years can be a variable length |
static void | main(String[] args) |
String | toString() Overrides UTCContainer.toString() |
void | validate() Method to normalise the contents of the UTCDuration object |
Methods inherited from class fipaos.util.UTCContainer |
clone, equals, get, isAfter, isBefore, set, setAccuracy |
Constructor Detail |
public UTCDuration(String duration)
public UTCDuration(int year, int month, int date, int hour, int minute, int second, int millisecond)
Method Detail |
public void addDuration(String duration)
public void addDuration(int year, int month, int date, int hour, int minute, int second, int millis)
public long getDurationInMillis()
public static void main(String[] args)
public String toString()
public void validate()
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |