Package com.morpheusdata.core.util
Class DateUtility
java.lang.Object
com.morpheusdata.core.util.DateUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Datestatic StringformatDate(Date date) static StringformatDate(Date date, String outputFormat) static CalendargetCalendarForDate(Date date, TimeZone timezone) static DategetEndOfDateDay(Date date) static DategetEndOfDateDay(Date date, TimeZone timezone) static DategetEndOfDateMonth(Date date) static DategetEndOfDateMonth(Date date, TimeZone timezone) static DategetEndOfDay(Date date) static DategetEndOfDay(Date date, Boolean doMillis) static DategetEndOfGmtDay(Date date) static DategetEndOfGmtHour(Date date) static DategetEndOfGmtMonth(Date date) static DategetEndOfGmtYear(Date date) static DategetEndOfHour(Date date) static DategetEndOfHour(Date date, Boolean doMillis) static DategetEndOfMonth(Date date) static DategetEndOfMonth(Date date, Boolean doMillis) static DategetEndOfYear(Date date) static DategetEndOfYear(Date date, Boolean doMillis) static DategetGmtDate(Date date) static CalendargetGregorianCalendarForDate(Date date, TimeZone timezone) static DategetStartOfDateDay(Date date) static DategetStartOfDateDay(Date date, TimeZone timezone) static DategetStartOfDateMonth(Date date) static DategetStartOfDateMonth(Date date, TimeZone timezone) static Datestatic DategetStartOfDay(Date date) static DategetStartOfDay(TimeZone timezone) static DategetStartOfGmtDay(Date date) static DategetStartOfGmtHour(Date date) static DategetStartOfGmtMonth(Date date) static DategetStartOfGmtYear(Date date) static DategetStartOfHour(Date date) static Datestatic DategetStartOfMonth(Date date) static DategetStartOfMonth(TimeZone timezone) static DategetStartOfNextGmtMonth(Date date) static Datestatic DategetStartOfYear(Integer year) static DategetStartOfYear(Integer year, TimeZone timezone) static DategetStartOfYear(TimeZone timezone) static DateparseDate(CharSequence date) static Datestatic DateparseDateWithFormat(String dateStr, String format) static DateparseDateWithFormat(String dateStr, String format, TimeZone timezone)
-
Field Details
-
gmtTimezone
-
serverTimezone
-
-
Constructor Details
-
DateUtility
public DateUtility()
-
-
Method Details
-
formatDate
-
formatDate
-
parseDate
-
parseDate
-
parseDateWithFormat
- Throws:
ParseException
-
parseDateWithFormat
public static Date parseDateWithFormat(String dateStr, String format, TimeZone timezone) throws ParseException - Throws:
ParseException
-
getStartOfNextGmtMonth
-
getEndOfGmtDay
-
getEndOfGmtHour
-
getStartOfDay
-
getStartOfDay
-
getStartOfMonth
-
getStartOfMonth
-
getStartOfYear
-
getStartOfYear
-
getStartOfYear
-
getStartOfYear
-
getStartOfDateMonth
-
getStartOfDateMonth
-
getEndOfDateMonth
-
getEndOfDateMonth
-
getStartOfDateDay
-
getStartOfDateDay
-
getEndOfDateDay
-
getEndOfDateDay
-
getGmtDate
-
getStartOfHour
-
getStartOfDay
-
getStartOfMonth
-
getEndOfMonth
-
getEndOfMonth
-
getEndOfYear
-
getEndOfYear
-
getEndOfDay
-
getEndOfDay
-
getEndOfHour
-
getEndOfHour
-
getStartOfGmtHour
-
getStartOfGmtDay
-
getStartOfGmtMonth
-
getStartOfGmtYear
-
getEndOfGmtMonth
-
getEndOfGmtYear
-
getGregorianCalendarForDate
-
getCalendarForDate
-
addToDate
-