Java Time Now currentTime()

Here you can find the source of currentTime()

Description

current Time

License

Open Source License

Declaration

public static String currentTime() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static SimpleDateFormat seconParse = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String currentTime() {
        Date date = new Date();
        return seconParse.format(date);

    }//from   w  w  w  .j av a  2s .  c o  m
}

Related

  1. currentTime()
  2. currentTime()
  3. currentTime()
  4. currentTime()
  5. currentTime()
  6. currentTime()
  7. currentTimedDate()