我有此功能,可将日期的字符串类型转换为Unix时间戳,如何将结果转换为timeInSeconds和offsetInNanos
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd yyyy HH:mm:ss.SSS zzz");
sdf.setTimeZone(TimeZone.getTimeZone("CET"));
System.out.println(sdf.parse("Jun 13 2003 23:11:52.454 UTC").getTime());