Java Time Now getCurrTime()

Here you can find the source of getCurrTime()

Description

get Curr Time

License

LGPL

Declaration

public static String getCurrTime() 

Method Source Code

//package com.java2s;
/**//  w ww . jav  a 2  s  . com
 * Converts a line of text into an array of lower case words using a
 * BreakIterator.wordInstance().
 * <p>
 *
 * This method is under the Jive Open Source Software License and was
 * written by Mark Imbriaco.
 *
 * @param text
 *            a String of text to convert into an array of words
 * @return text broken up into an array of words.
 */

import java.text.*;
import java.util.*;

public class Main {
    public static String getCurrTime() {
        Date now = new Date();
        SimpleDateFormat outFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        String s = outFormat.format(now);
        return s;
    }
}

Related

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