mathew murphy
07/19/2019, 7:45 PMDominaezzz
07/19/2019, 7:56 PMRuckus
07/19/2019, 7:57 PMLeoColman
07/19/2019, 8:25 PMparse
might return nullRuckus
07/19/2019, 8:29 PMjava.time
APIs, and not if they are being used correctly.mathew murphy
07/19/2019, 8:29 PMDominaezzz
07/19/2019, 8:30 PMRuckus
07/19/2019, 8:31 PMDominaezzz
07/19/2019, 8:31 PMmathew murphy
07/19/2019, 8:33 PM!!
works too, obviously, but IDEA suggested replacing itRuckus
07/19/2019, 8:33 PMfail
clause. It should return a platform type, which is safe to treat as not nullable.val zdt: ZonedDateTime = ZonedDateTime.parse("2019-07-19T14:19:05-05:00")
Dominaezzz
07/19/2019, 8:35 PMZonedDateTime
be constructed without parsing? (I guess that doesn't quite solve the problem).Ruckus
07/19/2019, 8:35 PMZonedDateTime.of(...)
Dominaezzz
07/19/2019, 8:36 PMRuckus
07/19/2019, 8:36 PMDominaezzz
07/19/2019, 8:39 PMRuckus
07/19/2019, 8:40 PMDominaezzz
07/19/2019, 8:59 PMRuckus
07/19/2019, 9:03 PMmathew murphy
07/19/2019, 9:17 PMval zdt = ZonedDateTime.of(2019,7,19,14,19,5,0, ZoneId.ofOffset("",ZoneOffset.ofHours(-5)))
Dominaezzz
07/19/2019, 9:34 PM