|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.util.DateUtils
public class DateUtils
Constructor Summary | |
---|---|
DateUtils()
|
Method Summary | |
---|---|
static boolean |
isInRange(org.joda.time.ReadableInstant date,
org.joda.time.ReadableInstant startDate,
org.joda.time.ReadableInstant endDate)
Checks if the given date is in range, meaning equals or larger than the start date and less or equal to the end date. |
static boolean |
isToday(org.joda.time.DateMidnight date)
Checks whether the given date is today. |
static org.joda.time.DateMidnight |
toDateMidnight(java.util.Date date)
Convert a java.util.Date instance to DateMidnight . |
static org.joda.time.DateMidnight |
toDateMidnight(java.util.Date date,
org.joda.time.DateMidnight defaultDate)
Convert a java.util.Date instance to DateMidnight . |
static org.joda.time.DateMidnight |
toDateMidnight(java.util.Date date,
org.joda.time.DateTimeZone timeZone)
Convert a java.util.Date instance to DateMidnight . |
static org.joda.time.DateMidnight |
toDateMidnight(java.lang.Long date,
org.joda.time.DateTimeZone timeZone)
Convert a Long instant (milliseconds) to DateMidnight . |
static org.joda.time.DateTime |
toDateTime(java.util.Date date)
Converts a given date to a DateTime object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateUtils()
Method Detail |
---|
public static org.joda.time.DateMidnight toDateMidnight(java.util.Date date, org.joda.time.DateTimeZone timeZone)
DateMidnight
. DateMidnight has a fixed
time component of 00:00, which is considered the first instant of the day, with the given
timeZone.
public static org.joda.time.DateMidnight toDateMidnight(java.lang.Long date, org.joda.time.DateTimeZone timeZone)
DateMidnight
. DateMidnight has a fixed
time component of 00:00, which is considered the first instant of the day, with the given
timeZone.
public static org.joda.time.DateMidnight toDateMidnight(java.util.Date date)
DateMidnight
. DateMidnight has a fixed
time component of 00:00, which is considered the first instant of the day. It is
timezone-aware.
public static org.joda.time.DateMidnight toDateMidnight(java.util.Date date, org.joda.time.DateMidnight defaultDate)
DateMidnight
. DateMidnight has a fixed
time component of 00:00, which is considered the first instant of the day. It is
timezone-aware.
public static boolean isInRange(org.joda.time.ReadableInstant date, org.joda.time.ReadableInstant startDate, org.joda.time.ReadableInstant endDate)
date
- : the date to checkstartDate
- : the lower boundary of the rangeendDate
- : the upper boundary of the range
public static boolean isToday(org.joda.time.DateMidnight date)
public static org.joda.time.DateTime toDateTime(java.util.Date date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |