public interface PlainTimeStamp extends Comparable
Modifier and Type | Interface and Description |
---|---|
static interface |
PlainTimeStamp.Range |
static class |
PlainTimeStamp.Utils |
Modifier and Type | Method and Description |
---|---|
PlainTimeStamp |
addCalendarField(int calendarField,
int amount) |
boolean |
canCompareTo(PlainTimeStamp other) |
String |
formatDate(String dateFormat) |
String |
formatTime(String timeFormat) |
PlainDate |
getDate(PlainDate dest)
If a date is associated with this timestamp return it as a PlainDate.
|
PlainTimeStamp |
getSubTime(boolean getDate,
boolean getTime,
boolean getMillisWithTime) |
PlainTime |
getTime(PlainTime dest)
If a time is associated with this timestamp return it as a PlainTime.
|
boolean |
hasDate() |
boolean |
hasTime() |
boolean |
isEmpty() |
String |
textEncode() |
Calendar |
toCalendar(Calendar c) |
long |
toLocalMillis()
This converts the timestamp to milliseconds by converting it to a local Calendar and then converting the Calendar to milliseconds.
|
compareTo
PlainDate getDate(PlainDate dest)
dest
- an optional destination PlainDate object. If this is null a new one is created and returned.PlainTime getTime(PlainTime dest)
dest
- an optional destination PlainTime object. If this is null a new one is created and returned.boolean hasDate()
boolean hasTime()
boolean canCompareTo(PlainTimeStamp other)
String textEncode()
boolean isEmpty()
PlainTimeStamp getSubTime(boolean getDate, boolean getTime, boolean getMillisWithTime)
PlainTimeStamp addCalendarField(int calendarField, int amount)
long toLocalMillis()