a guest May 16th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- DateTime now = new DateTime(DateTimeZone.getDefault()); // 5:40 PM
- int nowHours = now.getHourOfDay();
- int nowMins = now.getMinuteOfHour();
- Log.d("testing", "now: " + nowHours + ":" + nowMins);
- 05-16 19:10:30.637 25771-25771/com.example.test D/test: now: 17:10
RAW Paste Data