public class DateUtils
extends org.apache.commons.lang.time.DateUtils
DateUtils
contains some useful methods dealing date/time
conversion, formatting etc.MILLIS_IN_DAY, MILLIS_IN_HOUR, MILLIS_IN_MINUTE, MILLIS_IN_SECOND, MILLIS_PER_DAY, MILLIS_PER_HOUR, MILLIS_PER_MINUTE, MILLIS_PER_SECOND, RANGE_MONTH_MONDAY, RANGE_MONTH_SUNDAY, RANGE_WEEK_CENTER, RANGE_WEEK_MONDAY, RANGE_WEEK_RELATIVE, RANGE_WEEK_SUNDAY, SEMI_MONTH, UTC_TIME_ZONE
Constructor and Description |
---|
DateUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
formatTimeStamp(Date dateTime,
String format) |
static Date |
getDateFromString(String date,
String format) |
static String |
getFormattedDuration(long mills) |
static String |
getStringFromDate(Date date,
String format) |
static String |
getTimeStamp(String format) |
add, addDays, addHours, addMilliseconds, addMinutes, addMonths, addSeconds, addWeeks, addYears, getFragmentInDays, getFragmentInDays, getFragmentInHours, getFragmentInHours, getFragmentInMilliseconds, getFragmentInMilliseconds, getFragmentInMinutes, getFragmentInMinutes, getFragmentInSeconds, getFragmentInSeconds, isSameDay, isSameDay, isSameInstant, isSameInstant, isSameLocalTime, iterator, iterator, iterator, parseDate, round, round, round, setDays, setHours, setMilliseconds, setMinutes, setMonths, setSeconds, setYears, truncate, truncate, truncate
public static String getFormattedDuration(long mills)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.