Package | Description |
---|---|
java.util |
Contains the collection classes, and the date and time facilities.
|
Modifier and Type | Method and Description |
---|---|
static TimeZone |
TimeZone.getDefault()
Gets the default
TimeZone for this host. |
TimeZone |
Calendar.getTimeZone()
Gets the time zone.
|
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the
TimeZone for the given ID. |
Modifier and Type | Method and Description |
---|---|
static Calendar |
Calendar.getInstance(TimeZone zone)
Gets a calendar using the specified time zone.
|
void |
Calendar.setTimeZone(TimeZone value)
Sets the time zone with the given time zone value.
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.