Java Timestamp extractDateSystemTimeStamp()

Here you can find the source of extractDateSystemTimeStamp()

Description

Extract date form system and converts into TimeStamp SQL type

License

Open Source License

Return

TimeStamp

Declaration

public static Timestamp extractDateSystemTimeStamp() 

Method Source Code

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

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    /**//from ww  w  .  j  av  a 2  s  .  c om
     * 
     * Extract date form system and converts into TimeStamp SQL type
     * 
     * @return TimeStamp
     */
    public static Timestamp extractDateSystemTimeStamp() {
        Calendar calendario = Calendar.getInstance();
        Timestamp timestamp = new Timestamp(calendario.getTimeInMillis());

        return timestamp;
    }
}

Related

  1. differDayByNow(Timestamp timestamp)
  2. doubleToTimestamp(double f)
  3. durationBetween(Timestamp startedAt, Timestamp completedAt)
  4. encodeTimestamp(Timestamp timestamp)
  5. endOfMonth(java.sql.Timestamp dd)
  6. floorAsDate(Timestamp time)
  7. fromDate(Timestamp timestamp)
  8. fromTimestamp(Timestamp timestamp)
  9. generateTimestamp()