public interface GranularityParser
Modifier and Type | Method and Description |
---|---|
Granularity |
parseGranularity(String granularityName)
Parse a granularity from a string.
|
Granularity |
parseGranularity(String granularityName,
org.joda.time.DateTimeZone dateTimeZone)
Parse a granularity from a string and time zone.
|
Granularity parseGranularity(String granularityName, org.joda.time.DateTimeZone dateTimeZone) throws GranularityParseException
granularityName
- The name of the granularity being parseddateTimeZone
- The time zone to associate with the resulting granularityGranularityParseException
- if no granularity can be parsed from this nameGranularity parseGranularity(String granularityName) throws GranularityParseException
granularityName
- The name of the granularity being parsedGranularityParseException
- if no granularity can be parsed from this granularityCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.