public class DateUtils extends Object
Modifier and Type | Field and Description |
---|---|
static BigDecimal |
MAX_INT_BD |
static int |
NANOS_PER_SEC |
static BigDecimal |
NANOS_PER_SEC_BD |
Constructor and Description |
---|
DateUtils() |
Modifier and Type | Method and Description |
---|---|
static SimpleDateFormat |
getDateFormat() |
static String |
getFieldName(int field)
Returns the name of the specified calendar field.
|
static int |
parseNumericValueWithRange(String fieldName,
String strVal,
int minValue,
int maxValue) |
public static final int NANOS_PER_SEC
public static final BigDecimal MAX_INT_BD
public static final BigDecimal NANOS_PER_SEC_BD
public static SimpleDateFormat getDateFormat()
public static int parseNumericValueWithRange(String fieldName, String strVal, int minValue, int maxValue) throws IllegalArgumentException
IllegalArgumentException
public static String getFieldName(int field)
field
- the calendar fieldIndexOutOfBoundsException
- if field
is negative,
equal to or greater then FIELD_COUNT
.Copyright © 2021 The Apache Software Foundation. All rights reserved.