Here you can find the source of getDateAsLong(Timestamp date)
Parameter | Description |
---|---|
date | the date |
public static long getDateAsLong(Timestamp date)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { /**/*from w w w. j a va 2 s. c o m*/ * Gets the date as long. * * @param date * the date * * @return the date as long */ public static long getDateAsLong(Timestamp date) { return date == null ? -1 : date.getTime(); } }