public final class GpxTimezone extends java.lang.Object
TODO: should probably be replaced by TimeZone
.
CorrelateGpxWithImages
)Modifier and Type | Field and Description |
---|---|
private double |
timezone |
static GpxTimezone |
ZERO
The timezone 0.
|
Constructor and Description |
---|
GpxTimezone(double hours)
Construcs a new
GpxTimezone . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
formatTimezone()
Formats time zone.
|
double |
getHours()
Returns the timezone in hours.
|
int |
hashCode() |
static GpxTimezone |
parseTimezone(java.lang.String timezone)
Parses timezone.
|
public static final GpxTimezone ZERO
private final double timezone
public GpxTimezone(double hours)
GpxTimezone
.hours
- timezone in hourspublic double getHours()
public java.lang.String formatTimezone()
public static GpxTimezone parseTimezone(java.lang.String timezone) throws java.text.ParseException
timezone
- timezone. Expected format: ±HH:MMjava.text.ParseException
- if timezone can't be parsedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object