Java Timestamp randomTimestamp()

Here you can find the source of randomTimestamp()

Description

random Timestamp

License

Apache License

Declaration

public static Timestamp randomTimestamp() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;
import java.util.Date;

public class Main {
    public static Timestamp randomTimestamp() {
        return new Timestamp(new Date().getTime());
    }//from ww  w . j  a va 2s. c o  m
}

Related

  1. nowAsTimestamp()
  2. nowUtcTimestamp()
  3. objToTimeStamp(Object obj)
  4. printFull(Timestamp ts)
  5. quoteMySQLDataField(Timestamp fieldData)
  6. readTimestamp(ByteBuffer logBuf)
  7. readTimestamp(DataInput in)
  8. readTimestamp(ObjectInput in, long nullFlag)
  9. removeTime(Timestamp ts)