Java Time Now getTimeFromCurrent(long l)

Here you can find the source of getTimeFromCurrent(long l)

Description

get Time From Current

License

Apache License

Declaration

public static String getTimeFromCurrent(long l) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getTimeFromCurrent(long l) {

        if (l == 0)
            return "";
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(l));
    }//from   w  w  w . ja  va 2  s . c o m
}

Related

  1. getNowYearMonth()
  2. getNowYMD()
  3. getSpecifiedDateTime_235959(Date curDate)
  4. getStrCurrentStrTime()
  5. getThaiCurrentTime()
  6. getTimeString()
  7. getTimeString()
  8. getTimeString()
  9. getTimeString()