com.intel.util
Class Calendar.DateTime
- java.lang.Object
-
- com.intel.util.Calendar.DateTime
-
- Enclosing class:
- Calendar
public abstract static class Calendar.DateTime extends java.lang.Object
This class represents an immutable date and time setting
-
-
Constructor Summary
Constructors Constructor and Description Calendar.DateTime()
-
Method Summary
Methods Modifier and Type Method and Description abstract byte
day()
Returns the day of the month part of the DateTimeabstract boolean
equals(Calendar.DateTime other)
Check if time represented by the instance is equal to the time represented by the argument.abstract byte
hour()
Returns the hour part of the DateTimeabstract boolean
isAfter(Calendar.DateTime other)
Check if time represented by the instance is strictly later than the time represented by the argument.abstract boolean
isBefore(Calendar.DateTime other)
Check if time represented by the instance is strictly earlier than the time represented by the argument.abstract byte
minute()
Returns the minute part of the DateTimeabstract byte
month()
Returns the month part of the DateTimeabstract byte
second()
Returns the second part of the DateTimeabstract short
year()
Returns the year part of the DateTime in YYYY format
-
-
-
Method Detail
-
isAfter
public abstract boolean isAfter(Calendar.DateTime other)
Check if time represented by the instance is strictly later than the time represented by the argument.- Parameters:
other
- represents the time to be compared. Can't be 'null'.- Returns:
- 'true' if the time represented by the instance is strictly later than the time represented by the other. 'false' otherwise.
-
isBefore
public abstract boolean isBefore(Calendar.DateTime other)
Check if time represented by the instance is strictly earlier than the time represented by the argument.- Parameters:
other
- represents the time to be compared. Can't be 'null'.- Returns:
- 'true' if the time represented by the instance is strictly earlier than the time represented by the other. 'false' otherwise.
-
equals
public abstract boolean equals(Calendar.DateTime other)
Check if time represented by the instance is equal to the time represented by the argument.- Parameters:
other
- represents the time to be compared. Can't be 'null'.- Returns:
- 'true' if the time represented by the instance is equal to the time represented by the other. 'false' otherwise.
-
year
public abstract short year()
Returns the year part of the DateTime in YYYY format- Returns:
- Returns the year part of the DateTime
-
month
public abstract byte month()
Returns the month part of the DateTime- Returns:
- Returns the month part of the DateTime
-
day
public abstract byte day()
Returns the day of the month part of the DateTime- Returns:
- Returns the day of the month part of the DateTime
-
hour
public abstract byte hour()
Returns the hour part of the DateTime- Returns:
- Returns the year part of the DateTime
-
minute
public abstract byte minute()
Returns the minute part of the DateTime- Returns:
- Returns the year part of the DateTime
-
second
public abstract byte second()
Returns the second part of the DateTime- Returns:
- Returns the seconds part of the DateTime
-
-