Java Timestamp timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2)

Here you can find the source of timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2)

Description

timestamp Is Equals

License

Apache License

Parameter

Parameter Description
timestamp1 a parameter
timestamp2 a parameter

Return

boolean

Declaration

public static boolean timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;

public class Main {
    /***/*from  w w w  .j  av a 2 s  . c o  m*/
     * 
     * @param timestamp1
     * @param timestamp2
     * @return boolean
     */
    public static boolean timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2) {
        return (timestamp1.compareTo(timestamp2) == 0);
    }
}

Related

  1. timestamp()
  2. timestamp(int year, int month, int day, int hour, int minute, int second, int nanosecond)
  3. timestamp(Long param)
  4. timestampInMs()
  5. timestampIntToTimestamp(long timestampInt)
  6. TimeStampMonthDayYear(Timestamp timestamp)
  7. TimestampNow()
  8. timestampNow()
  9. timestampOf(final ZonedDateTime time)