Here you can find the source of getValue(Timestamp t)
public static Integer getValue(Timestamp t)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static Integer getValue(Timestamp t) { Integer tempMinSum = 0;//from ww w. j a v a2s.c o m tempMinSum += t.getHours() * 3600; tempMinSum += t.getMinutes() * 60; tempMinSum += t.getMinutes(); return tempMinSum; } }