code: @Override
      public boolean useDaylightTime() {
          // Note: This implementation returns true when
          // daylight saving time is used as of now or
          // after the next transition.
          long now = System.currentTimeMillis();
          int[] offsets = new int[2];
          getOffset(now, false, offsets);
          if (offsets[1] != 0) {
              return true;
          }
          // If DST is not used now, check if DST is used after the next transition
          TimeZoneTransition tt = getNextTransition(now, false);
          if (tt != null && tt.getTo().getDSTSavings() != 0) {
              return true;
          }
          return false;
      }
docs: {@inheritDoc}