java.lang.Object
com.esri.arcgisruntime.mapping.TimeValue
Defines a time offset or interval.
- Since:
- 100.3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the length of the time value in the TimeValue's unit.Gets the unit of the time value.
-
Constructor Details
-
TimeValue
Creates a new time value instance.- Parameters:
duration
- the duration of the time offset/intervaltimeUnit
- the unit of the time offset/interval- Throws:
IllegalArgumentException
- if timeUnit is null- Since:
- 100.3.0
-
-
Method Details
-
getDuration
public double getDuration()Gets the length of the time value in the TimeValue's unit.- Returns:
- the time length of the time interval/offset
- Since:
- 100.3.0
- See Also:
-
getTimeUnit
Gets the unit of the time value.- Returns:
- the unit of the time value.
- Since:
- 100.3.0
-