// e.g: Mon Dec 23 12:08:18 CST 2019 --> 1577074098000 public static long engFormat2unixTimeStamp(String engStr) throws ParseException { SimpleDateFormat engFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", java.util.Locale.ENGLISH); Date date = engFormat.parse(engStr); return date.getTime(); }
Date Java
最新推荐文章于 2024-08-30 17:38:29 发布