SHARE
TWEET

Untitled

a guest Feb 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SimpleDateFormat df = new SimpleDateFormat("HH:mm");
  2.         Calendar cal = Calendar.getInstance();
  3.         cal.set(Calendar.HOUR_OF_DAY, 0);
  4.         cal.set(Calendar.MINUTE, 0);
  5.         cal.set(Calendar.SECOND, 0);
  6.         int startDate = cal.get(Calendar.DATE);
  7.         while (cal.get(Calendar.DATE) == startDate) {
  8.             Log.d("time","currenttime"+cal.getTime());
  9.             cal.add(Calendar.MINUTE, 30);
  10.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top