Package slash.common.helpers
Interface DateTimeParserFormatter
public interface DateTimeParserFormatter
-
Method Summary
Modifier and TypeMethodDescriptionformat(CompactCalendar timeStamp) parse(String stringValue, CompactCalendar referenceTimestamp) Reads a string in the given formatvoid
-
Method Details
-
format
-
parse
Calendar parse(String stringValue, CompactCalendar referenceTimestamp) throws DateTimeParserException Reads a string in the given format- Parameters:
stringValue- String to parsereferenceTimestamp- Timestamp to be used for values not included in the pattern- Returns:
- The complete read timestamp
- Throws:
DateTimeParserException- on parser errors
-
getPatternInfo
String getPatternInfo()- Returns:
- A description of the underlying pattern. It doesn't necessarily have to be the pattern string itself (if this cannot be determined - e.g., with the new Time API). It can also be an example format.
-
setZone
-