Package org.openstreetmap.josm.data.gpx
Class GpxTimezone
java.lang.Object
org.openstreetmap.josm.data.gpx.GpxTimezone
Timezone in hours.
TODO: should probably be replaced by TimeZone.
- Since:
- 14205 (extracted from
CorrelateGpxWithImages)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFormats time zone.doublegetHours()Returns the timezone in hours.inthashCode()static GpxTimezoneparseTimezone(String timezone) Parses timezone.
-
Field Details
-
ZERO
The timezone 0. -
timezone
-
-
Constructor Details
-
GpxTimezone
Constructs a newGpxTimezone.- Parameters:
hours- timezone in hours
-
-
Method Details
-
getHours
Returns the timezone in hours.- Returns:
- the timezone in hours
-
formatTimezone
Formats time zone.- Returns:
- formatted time zone. Format: ±HH:MM
-
parseTimezone
Parses timezone.- Parameters:
timezone- timezone. Expected format: ±HH:MM- Returns:
- timezone
- Throws:
ParseException- if timezone can't be parsed
-
equals
-
hashCode
-