Java Time Now currentTimeString()

Here you can find the source of currentTimeString()

Description

current Time String

License

Apache License

Declaration

public static String currentTimeString() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Calendar;

public class Main {
    public static final SimpleDateFormat DATE_FORMAT_PART = new SimpleDateFormat("HH:mm");

    public static String currentTimeString() {
        return DATE_FORMAT_PART.format(Calendar.getInstance().getTime());
    }/*w  w  w. j ava 2s  .c o  m*/
}

Related

  1. currentTime()
  2. currentTimedDate()
  3. currentTimeMillis()
  4. currentTimePath(String basePath)
  5. currentTimeStr()
  6. currentTimeString(String pattern)
  7. currtimeToString8()
  8. get_cur_datetime()
  9. getCurDateBefore(long time)