Class Time

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

public class Time extends Iso8601
$Id$ Created on 30/06/2005 A type used to represent iCalendar time values.
See Also:
  • Constructor Details

    • Time

      public Time(TimeZone timezone)
      Parameters:
      timezone - a timezone for the instance
    • Time

      public Time(TimeZone timezone, boolean utc)
      Parameters:
      timezone - a timezone for the instance
      utc - indicates if the time is in UTC
    • Time

      public Time(long time, TimeZone timezone)
      Parameters:
      time - a time value in milliseconds from the epoch
      timezone - a timezone for the instance
    • Time

      public Time(long time, TimeZone timezone, boolean utc)
      Parameters:
      time - a time value in milliseconds from the epoch
      timezone - a timezone for the instance
      utc - indicates if the time is in UTC
    • Time

      public Time(Date time, TimeZone timezone)
      Parameters:
      time - a time value in milliseconds from the epoch
      timezone - a timezone for the instance
    • Time

      public Time(Date time, TimeZone timezone, boolean utc)
      Parameters:
      time - a time value as a Java date instance
      timezone - a timezone for the instance
      utc - indicates if the time is in UTC
    • Time

      public Time(String value, TimeZone timezone) throws ParseException
      Parameters:
      value -
      timezone -
      Throws:
      ParseException - where the specified value is not a valid time string
    • Time

      public Time(String value, TimeZone timezone, boolean utc) throws ParseException
      Parameters:
      value -
      timezone -
      utc -
      Throws:
      ParseException - where the specified value is not a valid time string
  • Method Details

    • isUtc

      public final boolean isUtc()
      Returns:
      true if time is utc