public static long getCurrentEpochTimeStamp(String timeStamp) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.0Z'");
Date date = sdf.parse(timeStamp);
return date.getTime();
}
此方法返回epoch当前时间戳,我需要将其转换为UTC时区。将时间戳转换为UTC时区
比你非常:) –
@SunsetBloom欢迎您:)很高兴我能帮助您。 –