Package net.fortuna.ical4j.util
Class TimeZones
- java.lang.Object
-
- net.fortuna.ical4j.util.TimeZones
-
public final class TimeZones extends Object
$Id$ [5/07/2004] Utility methods relevant to Java timezones.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZone
getDateTimeZone()
Although timezones are not really applicable to DATE instances in iCalendar, the implementation in iCal4j requires the use of a timezone.static TimeZone
getDefault()
static TimeZone
getUtcTimeZone()
Get the UTC Timezone.static boolean
isUtc(TimeZone timezone)
Indicates whether the specified timezone is equivalent to UTC time.
-
-
-
Field Detail
-
UTC_ID
public static final String UTC_ID
The timezone identifier for UTC time.- See Also:
- Constant Field Values
-
IBM_UTC_ID
public static final String IBM_UTC_ID
The timezone identifier for UTC time in the IBM JVM.- See Also:
- Constant Field Values
-
GMT_ID
public static final String GMT_ID
The timezone identifier for GMT time.- See Also:
- Constant Field Values
-
-
Method Detail
-
isUtc
public static boolean isUtc(TimeZone timezone)
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
public static TimeZone getDefault()
-
getDateTimeZone
public static TimeZone 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
public static TimeZone getUtcTimeZone()
Get the UTC Timezone.
-
-