ilog.rules.xml.types

Class IlrTimeZone

  • java.lang.Object
    • ilog.rules.xml.types.IlrTimeZone
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IlrDate, IlrDateTime, IlrGDay, IlrGMonth, IlrGMonthDay, IlrGYear, IlrGYearMonth, IlrTime


    public class IlrTimeZone
    extends java.lang.Object
    implements java.io.Serializable
    This class represents time zone information. This representation may be UTC (Universal Time, Coordinated) or defined by a signed difference in hour/minute from the UTC zone. It is also possible to omit the time zone information ( !isUTC() ).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected static int EQUAL 
      protected static int GREATER 
      protected static int LOWER 
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrTimeZone()
      Builds a non UTC time zone.
      IlrTimeZone(boolean flagUTC)
      Builds a time zone.
      IlrTimeZone(boolean zonePositive, short zoneHour, short zoneMinute)
      Builds a non UTC time zone given its location from the UTC area.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      protected static void formatToString(IlrTimeZone tz, java.lang.StringBuffer buffer) 
      protected static void formatToString(short s, int digitNb, java.lang.StringBuffer buf) 
      protected int getTimeZoneInMillis() 
      short getZoneHour()
      Gets the hour of the time zone.
      short getZoneMinute()
      Gets the minutes of the time zone.
      boolean isEqual(IlrTimeZone dt) 
      boolean isUTC()
      Determines if the time zone information is activated.
      boolean isZonePositive()
      Determines if the area is positive.
      void setTimeZone(boolean zonePositive, short zoneHour, short zoneMinute)
      Sets the time zone at a different hour/minute from the UTC area.
      protected void setTimeZoneInMillis(int allMillisecond) 
      void setUTC(boolean flagUTC)
      Activates/deactivates the time zone information.
      java.lang.String toString() 
      java.util.TimeZone toTimeZone()
      Converts an IlrTimeZone instance into a java.util.TimeZone.
      void unsetUTC()
      Unsets the time zone information.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IlrTimeZone

        public IlrTimeZone()
        Builds a non UTC time zone.
      • IlrTimeZone

        public IlrTimeZone(boolean flagUTC)
        Builds a time zone.
      • IlrTimeZone

        public IlrTimeZone(boolean zonePositive,
                   short zoneHour,
                   short zoneMinute)
        Builds a non UTC time zone given its location from the UTC area.
    • Method Detail

      • setTimeZoneInMillis

        protected void setTimeZoneInMillis(int allMillisecond)
      • setTimeZone

        public void setTimeZone(boolean zonePositive,
                       short zoneHour,
                       short zoneMinute)
        Sets the time zone at a different hour/minute from the UTC area.
      • unsetUTC

        public void unsetUTC()
        Unsets the time zone information.
      • getTimeZoneInMillis

        protected int getTimeZoneInMillis()
      • getZoneHour

        public short getZoneHour()
        Gets the hour of the time zone.
      • getZoneMinute

        public short getZoneMinute()
        Gets the minutes of the time zone.
      • setUTC

        public void setUTC(boolean flagUTC)
        Activates/deactivates the time zone information.
      • isZonePositive

        public boolean isZonePositive()
        Determines if the area is positive.
      • isUTC

        public boolean isUTC()
        Determines if the time zone information is activated.
      • toTimeZone

        public final java.util.TimeZone toTimeZone()
        Converts an IlrTimeZone instance into a java.util.TimeZone.
      • formatToString

        protected static void formatToString(IlrTimeZone tz,
                          java.lang.StringBuffer buffer)
      • formatToString

        protected static void formatToString(short s,
                          int digitNb,
                          java.lang.StringBuffer buf)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object

© Copyright IBM Corp. 1987, 2017