Java Timestamp objToTimeStamp(Object obj)

Here you can find the source of objToTimeStamp(Object obj)

Description

obj To Time Stamp

License

Open Source License

Declaration

public static Timestamp objToTimeStamp(Object obj) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

public class Main {

    public static Timestamp objToTimeStamp(Object obj) {
        Timestamp tt = null;// w  w w .  ja  v  a  2s.  co m
        if (obj != null) {
            tt = (Timestamp) obj;
        }
        return tt;
    }
}

Related

  1. newTimestamp()
  2. newTimestamp(Date date)
  3. normalizeDateTimeAsTimestamp(Date changedDate, Locale locale)
  4. nowAsTimestamp()
  5. nowUtcTimestamp()
  6. printFull(Timestamp ts)
  7. quoteMySQLDataField(Timestamp fieldData)
  8. randomTimestamp()
  9. readTimestamp(ByteBuffer logBuf)