JAVA
자바 formatter
선한열심
2013. 5. 21. 17:54
Formatter formatter = new Formatter();
formatter.format("%tY-%<tm-%<td %<tp %<tH:%<tI:%<tM \n", new Date());
formatter.format("%tB %<tb %<tA %<ta \n", new Date());
formatter.format(Locale.US, "%tY-%<tm-%<td %<tp %<tH:%<tI:%<tM \n", new Date());
formatter.format(Locale.US, "%tB %<tb %<tA %<ta \n", new Date());
formatter.format("%tF %<tT \n", new Date());
System.out.println(formatter.toString());
2013-05-21 오후 17:05:52
5월 5월 화요일 화
2013-05-21 pm 17:05:52
May May Tuesday Tue
2013-05-21 17:52:32