public class PrettyTimeParser extends Object
Usage:
PrettyTimeParser p = new PrettyTimeParser();
List<Date> parsed = p.parse("I'll be there at two");
//result: Date - 2:00PM
| Constructor and Description |
|---|
PrettyTimeParser()
Create a new
PrettyTimeParser with the current system default TimeZone. |
PrettyTimeParser(TimeZone timezone)
Create a new
PrettyTimeParser with the given TimeZone. |
| Modifier and Type | Method and Description |
|---|---|
List<Date> |
parse(String language)
|
List<DateGroup> |
parseSyntax(String language)
|
public PrettyTimeParser(TimeZone timezone)
PrettyTimeParser with the given TimeZone.public PrettyTimeParser()
PrettyTimeParser with the current system default TimeZone.Copyright © 2020 OCPsoft. All rights reserved.