Java Today getTodayLastSecond()

Here you can find the source of getTodayLastSecond()

Description

get Today Last Second

License

Open Source License

Declaration

public static Date getTodayLastSecond() 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date getTodayLastSecond() {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date());
        int year = calendar.get(Calendar.YEAR);
        int month = calendar.get(Calendar.MONTH);
        int day = calendar.get(Calendar.DAY_OF_MONTH);
        calendar.set(year, month, day, 23, 59, 59);
        return calendar.getTime();
    }// w  w w  .  jav a  2  s  . c o m
}

Related

  1. getTodayHHmmss(String HHmmss)
  2. getTodayInFormat(String format)
  3. getTodayIntevalDays(String date)
  4. getTodayLast()
  5. getTodayLastSecond()
  6. getTodayLastUpdateTimeFormat()
  7. getTodayLimit()
  8. getTodayMidnight()
  9. getTodayMin()