Here you can find the source of getTimestamp(Object o)
Parameter | Description |
---|---|
o | a parameter |
public static Timestamp getTimestamp(Object o)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Date; public class Main { /**//from w w w.j ava2 s.c om * * @param o * @return */ public static Timestamp getTimestamp(Object o) { Timestamp sh = null; if (null == o) return sh; if (o instanceof Date) { sh = (Timestamp) o; } return sh; } }