public class TimeParser extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
op |
(package private) int |
prev_multiplier |
(package private) TimeScanner |
scanner |
(package private) TimeSpec |
spec |
(package private) TimeToken |
token |
Constructor and Description |
---|
TimeParser(String dateString)
Constructs TimeParser instance from the given input string.
|
Modifier and Type | Method and Description |
---|---|
TimeSpec |
parse()
Parses the input string specified in the constructor.
|
TimeToken token
TimeScanner scanner
TimeSpec spec
int op
int prev_multiplier
public TimeParser(String dateString)
dateString
- at-style time specification (read rrdfetch man page
for the complete explanation)public TimeSpec parse() throws RrdException
RrdException
- Thrown if the date string cannot be parsed.