public class TimeResolution extends Object implements ITimeResolution
Modifier and Type | Field and Description |
---|---|
static String |
RESOLUTION_PATTERN |
Constructor and Description |
---|
TimeResolution(String res)
constructs a timeResolution.
|
Modifier and Type | Method and Description |
---|---|
int |
getDays() |
int |
getHours() |
int |
getMinutes() |
int |
getMonths() |
float |
getSeconds() |
long |
getYears() |
String |
toISO8601Format() |
String |
toString() |
public static final String RESOLUTION_PATTERN
public TimeResolution(String res)
res
- a String that represents a ISO 8601 conform time resolutionpublic long getYears()
getYears
in interface ITimeResolution
public int getMonths()
getMonths
in interface ITimeResolution
public int getDays()
getDays
in interface ITimeResolution
public int getMinutes()
getMinutes
in interface ITimeResolution
public int getHours()
getHours
in interface ITimeResolution
public float getSeconds()
getSeconds
in interface ITimeResolution
public String toISO8601Format()
toISO8601Format
in interface ITime
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.