Example usage for java.sql Time setSeconds

List of usage examples for java.sql Time setSeconds

Introduction

In this page you can find the example usage for java.sql Time setSeconds.

Prototype

@Deprecated
public void setSeconds(int seconds) 

Source Link

Document

Sets the seconds of this Date to the specified value.

Usage

From source file:com.jk.framework.util.FakeRunnable.java

/**
 * Convert date to time.//from  www. j  ava  2  s.  c o m
 *
 * @param date
 *            the date
 * @return the time
 */
public static Time convertDateToTime(final Date date) {
    final Time time = new Time(date.getTime());
    time.setSeconds(0);
    return time;
}