. : , , , .
String dateString = "Jul 20 2018 09:32:46 America/Argentina/La_Rioja";
DateTimeFormatter formatter
= DateTimeFormatter.ofPattern("LLL d uuuu HH:mm:ss VV", Locale.ROOT);
System.out.println(ZonedDateTime.parse(dateString, formatter));
2018-07-20T09:32:46-03:00[America/Argentina/La_Rioja]
Jul 20 2018 09:32:46 -08:30
ZonedDateTime
2018-07-20T09: 32: 46-08: 30.
. "Jul" , , , , , - . . Locale.getDefault()
. ( ), .
, M
L
/ 7; 07; ; ; J. : " /: 3 , . ". "Jul" - , 3 . " 4 ". "Jul" , .
Java 9.0.4, , MMM
LLL
. jdk1.8.0_131 MMM
, LLL
, ( Mac). . M
L
.
,
String dateString = "Jul 20 09:32:46";
ZoneId zone = ZoneId.of("America/Argentina/La_Rioja");
DateTimeFormatter formatter = new DateTimeFormatterBuilder().appendPattern("LLL d HH:mm:ss")
.parseDefaulting(ChronoField.YEAR, Year.now(zone).getValue())
.toFormatter(Locale.ROOT)
.withZone(zone);
System.out.println(ZonedDateTime.parse(dateString, formatter));
2018-07-20T09:32:46-03:00[America/Argentina/La_Rioja]
. , , , . , .
Java 8 MMM
, LLL
.