daily pastebin goal
28%
SHARE
TWEET

Untitled

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