title: Date with time ranging 15 minutes
body: <p>I want to check the current date time is exactly 15 minute </p>
  
  <p>Example:
   10:15,10:30,10:45,11:00,11:15,11:30,11:45 ....</p>
  
  <p>How can i achieve this </p>
  
  <pre><code>Calendar calendar = Calendar.getInstance();
  
  int hours = calendar.get(Calendar.HOUR_OF_DAY);
  
  int minutes = calendar.get(Calendar.MINUTE);
  
  int seconds = calendar.get(Calendar.SECOND);
  
  int s=minutes %15;
  
  if((minutes == 0 ) &amp;&amp; s==0 )
  {
      System.out.print("Time ");   
  
  }
  </code></pre>
  
  <p>can i use like this ..</p>