Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
Calendar.getInstance()
Gets a calendar using the default time zone and locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone)
Gets a calendar using the specified time zone and default locale.
|
Modifier and Type | Method and Description |
---|---|
int |
Calendar.compareTo(Calendar anotherCalendar)
Compares the time values (millisecond offsets from the Epoch) represented by two
Calendar objects. |
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.