Code example for TimeZone

Methods: getID

0
    return new AnyInt(timeZone_. getRawOffset());
  } 
   
  public Any getID() 
  { 
    return new AnyString(timeZone_.getID());
  } 
   
  public Any getDSTToday() 
  { 
    return timeZone_.inDaylightTime(new Date()) ? AnyBoolean.TRUE : AnyBoolean.FALSE;
  } 
   
  public void accept (Visitor v)
  { 
    // Override from AbstractMap or equals operator doesn't work. 
    // See AnyFile.accept also 
    if (v instanceof Equals || v instanceof Assign || v instanceof NotEquals)
      v.visitUnknown(this);
    else 
      super.accept(v);