Here you can find the source of getDayTime_End()
public static String getDayTime_End()
//package com.java2s; //License from project: Open Source License import java.text.*; public class Main { public static final SimpleDateFormat SDF_TIME = new SimpleDateFormat("HH:mm:ss"); public static String getDayTime_End() { String v_DateStr = SDF_TIME.format(new java.util.Date(System.currentTimeMillis() - 5400000)); String[] v_DateStrArr = v_DateStr.split("\\:"); int v_Min_Int = (Integer.parseInt(v_DateStrArr[1]) / 15) * 15; String v_Min_Str = v_Min_Int < 10 ? v_Min_Int + "0" : String.valueOf(v_Min_Int); return v_DateStrArr[0] + ":" + v_Min_Str + ":00"; }//from w ww . ja v a 2 s . com }