1 16 package org.joda.time.convert; 17 18 import java.util.Date ; 19 import java.util.Locale ; 20 import java.util.TimeZone ; 21 22 27 class MockUnknownTimeZone extends TimeZone { 28 29 MockUnknownTimeZone() { 30 super(); 31 } 32 33 public String getID() { 34 return "!!!"; 35 } 36 public String getDisplayName(boolean daylight, int style, Locale locale) { 37 return "!!!"; 38 } 39 40 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { 41 return 0; 42 } 43 public void setRawOffset(int offsetMillis) { 44 } 45 public int getRawOffset() { 46 return 0; 47 } 48 public boolean useDaylightTime() { 49 return false; 50 } 51 public boolean inDaylightTime(Date date) { 52 return false; 53 } 54 55 } 56 | Popular Tags |