public class IntervalFormatUtil extends Object
Constructor and Description |
---|
IntervalFormatUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
formatDuration(Duration duration,
String pattern) |
static String |
formatPeriod(Period period,
String pattern) |
static Duration |
parseDuration(String duration,
String pattern) |
protected static int |
parseIntField(String str,
int startPos,
int endPos) |
protected static long |
parseLongField(String str,
int startPos,
int endPos) |
static Period |
parsePeriod(String period,
String pattern) |
protected static long |
parseSubSecondField(String str,
int startPos,
int endPos) |
static <T extends TemporalAmount> |
validatePattern(Class<T> type,
String pattern) |
public static String formatDuration(Duration duration, String pattern) throws IllegalArgumentException
IllegalArgumentException
public static Duration parseDuration(String duration, String pattern) throws IllegalArgumentException
IllegalArgumentException
public static String formatPeriod(Period period, String pattern) throws IllegalArgumentException
IllegalArgumentException
public static Period parsePeriod(String period, String pattern) throws IllegalArgumentException
IllegalArgumentException
public static <T extends TemporalAmount> void validatePattern(Class<T> type, String pattern) throws IllegalArgumentException
IllegalArgumentException
protected static int parseIntField(String str, int startPos, int endPos)
protected static long parseLongField(String str, int startPos, int endPos)
protected static long parseSubSecondField(String str, int startPos, int endPos)
Copyright © 2019 Actian Corporation. All rights reserved.