TimeUtil { public static long str2Time(String timeStr) { return new DateTime(timeStr).toDate().getTime(); } private  TimeUtil(); static long str2Time(String timeStr); static String timestamp2ISODate(long timestamp); static long parse(String window);  }
@Test public void teststr2Time() { long x = TimeUtil.str2Time("2018-03-29T08:27:21.200Z"); Assert.assertEquals(1522312041200l, x); }