public enum MilitaryZone extends Enum<MilitaryZone> implements TZID
Represents a military timezone (used by US) where the globe is divided into fixed offset zones using the NATO phonetic alphabet.
| Enum Constant and Description |
|---|
ALPHA
Offset UTC+01:00
|
BRAVO
Offset UTC+02:00
|
CHARLIE
Offset UTC+03:00
|
DELTA
Offset UTC+04:00
|
ECHO
Offset UTC+05:00
|
FOXTROT
Offset UTC+06:00
|
GOLF
Offset UTC+07:00
|
HOTEL
Offset UTC+08:00
|
INDIA
Offset UTC+09:00
|
KILO
Offset UTC+10:00
|
LIMA
Offset UTC+11:00
|
MIKE
Offset UTC+12:00
|
NOVEMBER
Offset UTC-01:00
|
OSCAR
Offset UTC-02:00
|
PAPA
Offset UTC-03:00
|
QUEBEC
Offset UTC-04:00
|
ROMEO
Offset UTC-05:00
|
SIERRA
Offset UTC-06:00
|
TANGO
Offset UTC-07:00
|
UNIFORM
Offset UTC-08:00
|
VICTOR
Offset UTC-09:00
|
WHISKEY
Offset UTC-10:00
|
X_RAY
Offset UTC-11:00
|
YANKEE
Offset UTC-12:00
|
ZULU
Equivalent to
ZonalOffset.UTC. |
| Modifier and Type | Method and Description |
|---|---|
String |
canonical()
Yields a canonical form of this timezone identifier, for
example "MILITARY~UTC+01:00".
|
ZonalOffset |
getOffset()
Yields the associated timezone offset.
|
String |
getSymbol()
Yields the first letter of the full name (for example
"A").
|
String |
toString()
Yields the full name (for example "Alpha").
|
static MilitaryZone |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MilitaryZone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MilitaryZone ALPHA
Offset UTC+01:00
public static final MilitaryZone BRAVO
Offset UTC+02:00
public static final MilitaryZone CHARLIE
Offset UTC+03:00
public static final MilitaryZone DELTA
Offset UTC+04:00
public static final MilitaryZone ECHO
Offset UTC+05:00
public static final MilitaryZone FOXTROT
Offset UTC+06:00
public static final MilitaryZone GOLF
Offset UTC+07:00
public static final MilitaryZone HOTEL
Offset UTC+08:00
public static final MilitaryZone INDIA
Offset UTC+09:00
public static final MilitaryZone KILO
Offset UTC+10:00
public static final MilitaryZone LIMA
Offset UTC+11:00
public static final MilitaryZone MIKE
Offset UTC+12:00
public static final MilitaryZone NOVEMBER
Offset UTC-01:00
public static final MilitaryZone OSCAR
Offset UTC-02:00
public static final MilitaryZone PAPA
Offset UTC-03:00
public static final MilitaryZone QUEBEC
Offset UTC-04:00
public static final MilitaryZone ROMEO
Offset UTC-05:00
public static final MilitaryZone SIERRA
Offset UTC-06:00
public static final MilitaryZone TANGO
Offset UTC-07:00
public static final MilitaryZone UNIFORM
Offset UTC-08:00
public static final MilitaryZone VICTOR
Offset UTC-09:00
public static final MilitaryZone WHISKEY
Offset UTC-10:00
public static final MilitaryZone X_RAY
Offset UTC-11:00
public static final MilitaryZone YANKEE
Offset UTC-12:00
public static final MilitaryZone ZULU
Equivalent to ZonalOffset.UTC.
public static MilitaryZone[] values()
for (MilitaryZone c : MilitaryZone.values()) System.out.println(c);
public static MilitaryZone valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ZonalOffset getOffset()
Yields the associated timezone offset.
public String getSymbol()
Yields the first letter of the full name (for example "A").
public String toString()
Yields the full name (for example "Alpha").
toString in class Enum<MilitaryZone>Copyright © 2014–2016. All rights reserved.