Java Time Now currentTimeMillis()

Here you can find the source of currentTimeMillis()

Description

current Time Millis

License

Open Source License

Declaration

public static long currentTimeMillis() 

Method Source Code

//package com.java2s;

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

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

    public static long currentTimeMillis() {
        return getToday().getTime();
    }//from ww w.  j a v  a2  s  .  c om

    public static String getTime() {
        return sdfTime.format(new Date());
    }

    public static Date getToday() {
        return new Date();
    }
}

Related

  1. currentTime()
  2. currentTime()
  3. currentTime()
  4. currentTime()
  5. currentTimedDate()
  6. currentTimePath(String basePath)
  7. currentTimeStr()
  8. currentTimeString()
  9. currentTimeString(String pattern)