Java Day getDayTime_End()

Here you can find the source of getDayTime_End()

Description

get Day Tim End

License

Open Source License

Declaration

public static String getDayTime_End() 

Method Source Code

//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
}

Related

  1. getDaysOfDates(Date first, Date second)
  2. getdaysslice(String startdate, String enddate)
  3. getDayStr(int i, String formatStr)
  4. getDayStringOfDate(Date date)
  5. getDayText(Date day)
  6. getLastDay()
  7. getLastDay(Date date)
  8. getLastDay(Date date)
  9. getLastDay(Date date)