Java Time Now currentTime()

Here you can find the source of currentTime()

Description

current Time

License

Apache License

Declaration

public static String currentTime() 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    public static String currentTime() {
        SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy", Locale.ENGLISH);
        //df.setTimeZone(TimeZone.getTimeZone("GMT+08:00"));
        String sendtime = df.format(new Date());
        return sendtime;
    }//www  .  j a va2s. com
}

Related

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