private static void myHandler() throws ParseException {
  String dtime1 = "23/Apr/2019:04:08:00 +0800";
  SimpleDateFormat sdf1 = new SimpleDateFormat("dd/MMM/yyyy:hh:mm:ss Z", Locale.US);
  Date date = sdf1.parse(dtime1);
  System.out.println(date.getHours());
}

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2021-08-13
  • 2021-07-22
  • 2023-01-21
  • 2022-12-23
  • 2022-02-03
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-10-16
  • 2021-12-27
  • 2021-09-19
相关资源
相似解决方案