Package net.fortuna.ical4j.util
Class TimeZones
java.lang.Object
net.fortuna.ical4j.util.TimeZones
$Id$ [5/07/2004]
Utility methods relevant to Java timezones.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZoneAlthough timezones are not really applicable to DATE instances in iCalendar, the implementation in iCal4j requires the use of a timezone.static TimeZonestatic TimeZoneGet the UTC Timezone.static booleanIndicates whether the specified timezone is equivalent to UTC time.
-
Field Details
-
UTC_ID
The timezone identifier for UTC time.- See Also:
-
IBM_UTC_ID
The timezone identifier for UTC time in the IBM JVM.- See Also:
-
GMT_ID
The timezone identifier for GMT time.- See Also:
-
-
Method Details
-
isUtc
Indicates whether the specified timezone is equivalent to UTC time.- Parameters:
timezone- a timezone instance- Returns:
- true if the timezone is UTC time, otherwise false
-
getDefault
-
getDateTimeZone
Although timezones are not really applicable to DATE instances in iCalendar, the implementation in iCal4j requires the use of a timezone. Dates in iCal4j may be either "floating", in that they use the default Java timezone, or alternatively will use UTC (this is the default). The use of floating dates may be configured by specifying the following as a system property or in a file called "ical4j.properties" in the classpath:net.fortuna.ical4j.timezone.date.floating=true
- Returns:
- the timezone used for date instances
-
getUtcTimeZone
Get the UTC Timezone.
-