ewe.sys
Class TimeOfDay
java.lang.Object
ewe.data.DataObject
ewe.sys.Time
ewe.sys.TimeOfDay
- All Implemented Interfaces:
- Comparable, Copyable, DataUnit, Stringable, Textable, Value
- public class TimeOfDay
- extends Time
TimeOfDay is a type of Time object which is only concerned with
the time of an unspecified day. Essentially the difference between
this and a Time object is that in comparing two TimeOfDay objects, only
the hours, minutes, seconds, milliseconds will be compared. The year, month
and day will be ignored.
| Fields inherited from class ewe.sys.Time |
_fields, day, DAY, dayOfWeek, defaultFormat, epoch, format, hour, HOUR, millis, minute, MINUTE, month, MONTH, second, SECOND, year, YEAR |
| Methods inherited from class ewe.sys.Time |
after, before, compareEncodedTimes, convertSystemTime, dateDifference, difference, equals, format, fromString, fromString, fromString, getEncodedTime, getFormat, getText, getTime, hashCode, indexOfDayInWeek, isLeapYear, isValid, numberOfDays, parse, parse, roundTo, setEncodedTime, setFormat, setText, setTime, setToCurrentTime, toString, toString, toString, update |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, copied, copyFrom, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
todDefaultFormat
public static String todDefaultFormat
TimeOfDay
public TimeOfDay()
TimeOfDay
public TimeOfDay(int hour,
int minute,
int second)
getDefaultFormat
public String getDefaultFormat()
- Overrides:
getDefaultFormat in class Time
compareTo
public int compareTo(Object other)
- Description copied from interface:
Comparable
- Compare this object with another. It should return: less than 0 if this object
is considered LESS than the "other" object; greater than 0 if this object is
considered GREATER than the "other" object; 0 if this object is
considered EQUAL to the "other" object. (i.e. it is an implicit
subtraction).
- Specified by:
compareTo in interface Comparable- Overrides:
compareTo in class Time