@LayoutlibDelegate
 /*package*/ static long createDateIntervalFormat(
     String skeleton, String localeName, String tzName) {
   TimeZone prevDefaultTz = TimeZone.getDefault();
   TimeZone.setDefault(TimeZone.getTimeZone(tzName));
   DateIntervalFormat_Delegate newDelegate = new DateIntervalFormat_Delegate();
   newDelegate.mFormat = DateIntervalFormat.getInstance(skeleton, new ULocale(localeName));
   TimeZone.setDefault(prevDefaultTz);
   return sManager.addNewDelegate(newDelegate);
 }
예제 #2
0
 /** @throws Exception */
 @After
 public void columnBindingTearDown() throws Exception {
   TimeZone.setDefault(this.currentTimeZone);
 }
예제 #3
0
  @Before
  public void columnBindingSetUp() throws Exception {

    TimeZone.setDefault(TimeZone.getTimeZone("GMT+0"));
  }