public final class STDate extends STAbstractDate<STDate>
MAX_ALLOWED_YEAR
dateTime, FORMAT_PATTERN_DATE_ISO, FORMAT_PATTERN_DATETIME_ISO, FORMAT_PATTERN_TIME_ISO
Constructor and Description |
---|
STDate()
Constructs this object with date: 0001-01-01.
|
STDate(Date date) |
STDate(int year,
int month,
int day)
Constructs this object from given year, month and day of month.
|
STDate(STDate source)
Constructs this object with given source date and time zone.
|
Modifier and Type | Method and Description |
---|---|
protected STDate |
clone()
TODO : REMOVE, cf http://www.javapractices.com/topic/TopicAction.do?Id=71
|
static STDate |
futureInfinity()
Returns a date value which is considered as the 'future-infinite' date (not time).
|
Date |
getDate() |
boolean |
isFutureInfinity()
Checks if current date is considered the 'future-infinite'.
|
boolean |
isPastInfinity()
Checks if current date is considered the 'past-infinite'.
|
static STDate |
pastInfinity()
Returns a date value which is considered as the 'past-infinite' date (not time).
|
static STDate |
today()
Returns current date.
|
addDay, addMonth, addYear, compareTo, getDay, getFirstDateOfMonth, getLastDateOfMonth, getMonth, getWeekday, getYear, isSet, substractDay, substractMonth, substractYear, tomorrow, yesterday
createCalendar, equals, hashCode, isAfter, isAfterOrEqual, isBefore, isBeforeOrEqual, isBetween, isSet, rawAdd, rawSubstract, reset, setDateFields, setTimeFields, toIsoDateTimeString, toString, toString, toString
public STDate()
public STDate(Date date)
public STDate(int year, int month, int day)
public STDate(STDate source)
null
,
current system date will be used.public static STDate today()
public static STDate pastInfinity()
public static STDate futureInfinity()
public boolean isPastInfinity()
isPastInfinity
in class STAbstractDate<STDate>
true
if current date/time is considered the 'past-infinite'.public boolean isFutureInfinity()
isFutureInfinity
in class STAbstractDate<STDate>
true
if current date/time is considered the 'future-infinite'.protected STDate clone()
STAbstractInstant
clone
in class STAbstractInstant<STDate>
public Date getDate()
Copyright © 2021. All rights reserved.