public class TimeParser extends Object
| Constructor and Description |
|---|
TimeParser(long runtime) |
| Modifier and Type | Method and Description |
|---|---|
static long |
parseDuration(String durationStr)
Parses a duration String to its long value.
|
long |
parseRuntime(String str)
Parses time strings into timestamps, with support for some basic math.
|
public long parseRuntime(String str)
str - the time string to parsepublic static long parseDuration(String durationStr)
durationStr - the duration string (ex: 5m, 5h etc).Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.