public class DateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATETIME_PATTERN |
static DateFormat |
DEFAULT_DATE_FORMAT |
static DateFormat |
LAUNCH_DATE_FORMAT |
static String |
LAUNCH_DATE_FORMAT_PATTERN |
static String |
UTC |
static DateFormat |
UTC_DATE_FORMAT |
static String |
UTC_DATE_FORMAT_PATTERN |
static TimeZone |
UTC_TIMEZONE |
| Constructor and Description |
|---|
DateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
dateToCalendar(Date date) |
static String |
dateToStringWithTZ(Date date) |
static String |
format(Calendar calendar) |
static String |
format(Date date) |
static Date |
getEndDateFromStartDate(AggregationType aggregationType,
Date startDate,
int offset,
boolean partialHarvesting) |
static Calendar |
getPreviousPeriod(AggregationType aggregationType,
boolean partialHarvesting) |
static Calendar |
getStartCalendar(int year,
int month,
int day) |
static Calendar |
getUTCCalendarInstance() |
static DateFormat |
getUTCDateFormat(String pattern) |
public static TimeZone UTC_TIMEZONE
public static final String DATETIME_PATTERN
public static final DateFormat DEFAULT_DATE_FORMAT
public static final String LAUNCH_DATE_FORMAT_PATTERN
public static final DateFormat LAUNCH_DATE_FORMAT
public static final String UTC_DATE_FORMAT_PATTERN
public static final DateFormat UTC_DATE_FORMAT
public static final String UTC
public static DateFormat getUTCDateFormat(String pattern)
public static Calendar getUTCCalendarInstance()
public static Calendar getPreviousPeriod(AggregationType aggregationType, boolean partialHarvesting)
public static Calendar getStartCalendar(int year, int month, int day)
public static Date getEndDateFromStartDate(AggregationType aggregationType, Date startDate, int offset, boolean partialHarvesting)
Copyright © 2019. All Rights Reserved.