Java Timestamp Field getSqlTimeStamp()

Here you can find the source of getSqlTimeStamp()

Description

get Sql Time Stamp

License

Open Source License

Declaration

public static Timestamp getSqlTimeStamp() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.Timestamp;

public class Main {
    public static Timestamp getSqlTimeStamp() {
        java.sql.Date date = new java.sql.Date(System.currentTimeMillis());
        Timestamp timestamp = new Timestamp(date.getTime());
        return timestamp;
    }/* w w  w.  ja v  a 2s .  c o  m*/
}

Related

  1. getRealCalendar(Timestamp time)
  2. getResultRowValueAsTimestamp(String valueName, Map resultRow)
  3. getSafeLong(final Timestamp d, final long i)
  4. getSeconds(Timestamp timeStamp)
  5. getServerToUserDateString(TimeZone timeZone, int dateFormat, java.sql.Timestamp date)
  6. getSqlTimeStamp(java.util.Date date)
  7. getSQLTimeStampForDate(Date date)
  8. getSqlTimestampFromMicrosSinceEpoch( long timestamp)
  9. getSqlTimestampFromShortDate(String date)