且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将以下c代码转换为java

更新时间:2023-12-02 16:32:46

./ file
time is Thu Jun 25 22:02 :46 2015
./file time is Thu Jun 25 22:02:46 2015



有人可以帮我在java中做同样的事。



谢谢


can anyone please help me to do the same it in java.

thank you


自学。这是一些不错的解释
Learn for yourself. Here is some nice explanation.


尝试类似:

Try something like:
public class JDT
{
  public static void main(String args[])
  {
    long millisec = 1435237366000L;
    java.util.Date dt = new java.util.Date(millisec);
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy");
    System.out.println(sdf.format(dt));
  }
}