Here you can find the source of getSecond(Time time)
public static int getSecond(Time time)
//package com.java2s; //License from project: Apache License import java.sql.Time; import java.time.LocalTime; public class Main { public static int getSecond(Time time) { LocalTime localTime = time.toLocalTime(); return localTime.getSecond(); }/*from w w w.ja va2s . c o m*/ }