TimeZone ID 확인 하기 SimpleDateFormat sdf = new SimpleDateFormat ( dateFormat ); sdf.setTimeZone ( TimeZone.getTimeZone ( "Asia/Seoul" ) ); System.out.println("Asia/Seoul:"+sdf.format(time)); 결과) Asia/Seoul:20140825T141111.232+0900 "Asia/Seoul" 이런걸 Timezone ID 라고 한다. TimeZone.getAvailableIDs(); 이걸로 Timezone ID를 알 수 있다. 더보기 highligher 사용방법 //코드작성부분 더보기 syntaxhighlighter 테스트! public class Text extends Activity{ public static final String TAG = Text.class.getSimpleName(); protected void oncreate(Bundle saveInstance){ Log.d(TAG, "hello"); } } 더보기 이전 1 ··· 13 14 15 16 17 다음