yyyy-MM-dd'T'HH:mmXXX
String time = "2022-03-16T18:55+08:00";
long time1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mmXXX").parse(time).getTime();
System.out.println(time1);
yyyy-MM-dd'T'HH:mmXXX
String time = "2022-03-16T18:55+08:00";
long time1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mmXXX").parse(time).getTime();
System.out.println(time1);