public final class DatatypeConverter extends Object
Constructor and Description |
---|
DatatypeConverter() |
Modifier and Type | Method and Description |
---|---|
static LocalDate |
parseDate(String value)
Parse a date.
|
static DayOfWeek |
parseDay(String value)
Parse a Day value.
|
static Duration |
parseDuration(String value)
Parse a duration value.
|
static Double |
parsePercent(String value)
Parse a percent complete value.
|
static LocalDateTime |
parseTimestamp(String value)
Parse a timestamp value.
|
static String |
printDate(LocalDate value)
Print a date.
|
static String |
printDay(DayOfWeek value)
Print a day value.
|
static String |
printDuration(Duration value)
Print a duration value.
|
static String |
printPercent(Double value)
Print a percent complete value.
|
static String |
printTimestamp(LocalDateTime value)
Print a timestamp value.
|
public static final LocalDateTime parseTimestamp(String value)
value
- string representationpublic static final String printTimestamp(LocalDateTime value)
value
- time valuepublic static final Duration parseDuration(String value)
value
- duration valuepublic static final String printDuration(Duration value)
value
- Duration instancepublic static final LocalDate parseDate(String value)
value
- string representation of a datepublic static final String printDate(LocalDate value)
value
- Date instancepublic static final Double parsePercent(String value)
value
- sting representation of a percent complete value.public static final String printPercent(Double value)
value
- Double instancepublic static final DayOfWeek parseDay(String value)
value
- string representation of a dayCopyright © 2000–2024 Packwood Software. All rights reserved.