java时间戳
作者:互联网
代码
long epoch = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss").parse("01/01/1970 01:00:00").getTime() / 1000;
String date = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(new java.util.Date (epoch*1000));
ref
https://stackoverflow.com/a/43425260/5824202
标签:00,01,java,text,HH,时间,new 来源: https://www.cnblogs.com/talentzemin/p/16456526.html