Java Timestamp Create timestampStartOfDay(long time)

Here you can find the source of timestampStartOfDay(long time)

Description

timestamp Start Of Day

License

Open Source License

Declaration

public static long timestampStartOfDay(long time) 

Method Source Code

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

public class Main {
    public static long timestampStartOfDay(long time) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(time);/*from  w w  w  . j a  v  a  2 s . c  o  m*/
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        return cal.getTimeInMillis();
    }
}

Related

  1. timestamp4(int unixTime)
  2. timestampDifference(long ts1, long ts2)
  3. timestampMicros()
  4. timestampNonce(final int length)
  5. timestampNow()
  6. timestampStringToUnixDate(String s)
  7. toOracleTimestamp(String stringDate, int intFlag)
  8. toSQLTime(Instant timestamp)
  9. toSqlTime(Timestamp timestamp)