Java SQL Time getJoinedSysDateTime()

Here you can find the source of getJoinedSysDateTime()

Description

get Joined Sys Date Time

License

Apache License

Declaration

public static String getJoinedSysDateTime() 

Method Source Code

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

import java.sql.Timestamp;

public class Main {

    public static String getJoinedSysDateTime() {
        String str = getSysDateTime();
        str = str.substring(0, 4) + str.substring(5, 7)
                + str.substring(8, 10) + str.substring(11, 13)
                + str.substring(14, 16) + str.substring(17, 19);
        return str;
    }//ww  w  .j a v a  2 s.com

    public static String getSysDateTime() {
        return new Timestamp(System.currentTimeMillis()).toString()
                .substring(0, 19);
    }
}

Related

  1. getFormatDateTimeDesc(long longDate)
  2. getFullDateTime(ResultSet rs, String column)
  3. getFutureTime(int month)
  4. getGrandfatheredTime()
  5. getIntervalDays(Date time1, Date time2)
  6. getLastTimeOfDay(Calendar calendar)
  7. getMaxModifyTime(String path)
  8. getMaxPollTime(final Connection jdbcConnection, final String tableName)
  9. getServerTime()