Package org.geotools.api.temporal
Interface PeriodDuration
- All Superinterfaces:
Duration
- All Known Implementing Classes:
DefaultPeriodDuration
Uses the format specified by ISO 8601 for exchanging information about the duration of a period.
- Author:
- Stephane Fellah (Image Matters), Alexander Petkov
-
Method Summary
Modifier and TypeMethodDescriptiongetDays()
A positive integer, followed by the character "D", which indicated the number of days in the period.A mandatory element which designates that the returned string represents the duration of a period.getHours()
A positive integer, followed by the character "H", which indicated the number of hours in the period.A positive integer, followed by the character "M", which indicated the number of minutes in the period.A positive integer, followed by the character "M", which indicated the number of months in the period.A positive integer, followed by the character "S", which indicated the number of seconds in the period.Included whenever the sequence includes values for units less than a day.getYears()
A positive integer, followed by the character "Y", which indicated the number of years in the period.
-
Method Details
-
getDesignator
InternationalString getDesignator()A mandatory element which designates that the returned string represents the duration of a period. -
getYears
InternationalString getYears()A positive integer, followed by the character "Y", which indicated the number of years in the period. -
getMonths
InternationalString getMonths()A positive integer, followed by the character "M", which indicated the number of months in the period. -
getDays
InternationalString getDays()A positive integer, followed by the character "D", which indicated the number of days in the period. -
getTimeIndicator
InternationalString getTimeIndicator()Included whenever the sequence includes values for units less than a day. -
getHours
InternationalString getHours()A positive integer, followed by the character "H", which indicated the number of hours in the period. -
getMinutes
InternationalString getMinutes()A positive integer, followed by the character "M", which indicated the number of minutes in the period. -
getSeconds
InternationalString getSeconds()A positive integer, followed by the character "S", which indicated the number of seconds in the period.
-