Пример #1
0
 /**
  * Refreshes the rules from the underlying data provider.
  *
  * <p>This method is an extension point that allows providers to refresh their rules dynamically
  * at a time of the applications choosing. After calling this method, the offset stored in any
  * {@link ZonedDateTime} may be invalid for the zone ID.
  *
  * <p>Dynamic behavior is entirely optional and most providers, including the default provider, do
  * not support it.
  *
  * @return true if the rules were updated
  * @throws ZoneRulesException if an error occurs during the refresh
  */
 public static boolean refresh() {
   boolean changed = false;
   for (ZoneRulesProvider provider : PROVIDERS) {
     changed |= provider.provideRefresh();
   }
   return changed;
 }