Java Timestamp Create getTimestampToOracle()

Here you can find the source of getTimestampToOracle()

Description

get Timestamp To Oracle

License

Apache License

Declaration

public static final String getTimestampToOracle() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {

    public static final String getTimestampToOracle() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(System.currentTimeMillis());
    }//from   w ww. j a  v a  2s.c om
}

Related

  1. getTimestampNullSafe(final Date ts)
  2. getTimestampOrNull(Object dbResult)
  3. getTimeStampString()
  4. getTimestampString(long timeInMillis)
  5. getTimeStampStringFormat(Timestamp ts, String fmt)
  6. getTimestampXDaysFromY(long startTimeInMillis, int daysFromStartDate)
  7. getTimeStrByTimestamp(long timestamp, String tz)
  8. timestamp()
  9. timeStamp()