Java Timestamp getValue(Timestamp t)

Here you can find the source of getValue(Timestamp t)

Description

get Value

License

Apache License

Declaration

public static Integer getValue(Timestamp t) 

Method Source Code


//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;
    }
}

Related

  1. getTimeStr(Timestamp tsp)
  2. getTimeString(java.sql.Timestamp ts)
  3. getTimeString(Timestamp timestamp)
  4. getTodayTimestamp()
  5. getUtilDate(java.sql.Timestamp time)
  6. getZonedDateTime(final Timestamp timestamp)
  7. hasTimeExpired(Timestamp referenceTime)
  8. inRange(Timestamp start, Timestamp end, boolean OnMonday, boolean OnTuesday, boolean OnWednesday, boolean OnThursday, boolean OnFriday, boolean OnSaturday, boolean OnSunday)
  9. internalToTimestamp(long v)