Java SQL Time getLastTimeOfDay(Calendar calendar)

Here you can find the source of getLastTimeOfDay(Calendar calendar)

Description

get Last Time Of Day

License

Open Source License

Declaration

public static Timestamp getLastTimeOfDay(Calendar calendar) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Timestamp getLastTimeOfDay(Calendar calendar) {

        calendar.set(Calendar.HOUR_OF_DAY, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);

        return new Timestamp(calendar.getTimeInMillis());
    }//w  ww . ja v  a 2s.  c  om
}

Related

  1. getFullDateTime(ResultSet rs, String column)
  2. getFutureTime(int month)
  3. getGrandfatheredTime()
  4. getIntervalDays(Date time1, Date time2)
  5. getJoinedSysDateTime()
  6. getMaxModifyTime(String path)
  7. getMaxPollTime(final Connection jdbcConnection, final String tableName)
  8. getServerTime()
  9. getServerTimezone(Properties dbSettings)