Java Time Now getCurTime()

Here you can find the source of getCurTime()

Description

get Cur Time

License

Open Source License

Declaration

public static String getCurTime() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final String time_pattern = "yyyy-MM-dd HH:mm:ss";

    public static String getCurTime() {
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat(time_pattern);
        return format.format(date);
    }/*from w  w  w  . j  a v  a 2 s.c o m*/
}

Related

  1. getCurentTimeDirsPath()
  2. getCurrDateTime()
  3. getCurrSysTime()
  4. getCurrTime()
  5. getCurrTime()
  6. getCurTimeStr()
  7. getDBCurrentTime()
  8. getLogCurrentTime()
  9. getNow()