Created
April 15, 2013 10:33
-
-
Save amay077/5387211 to your computer and use it in GitHub Desktop.
DateFormat.format では HH:mm が使えない ref: http://qiita.com/items/b33603b958a4d0eedc8a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long t = System.currentTimeMillis(); | |
Log.d("By DateFormat", DateFormat.format("HH:mm", t).toString()); | |
Log.d("By SimpleDateFormat", new SimpleDateFormat("HH:mm").format(new Date(t))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04-09 22:42:14.435: D/By DateFormat(2860): HH:42 ←あ〜あ | |
04-09 22:42:14.435: D/By SimpleDateFormat(2860): 22:42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment