println("app started")
// create zoned datetime for 1st Jan 2018, 10am UTC
val zdt1
= ZonedDateTime.
of(2018,
1,
1,
10,
0,
0,
0, ZoneId.
of("UTC")) val zdt2
= ZonedDateTime.
parse("2018-01-01T10:00:00Z")
println(s"COMPARING: $zdt1 and $zdt2")
println("== check: " + (zdt1 == zdt2))
println(".equals check: " + (zdt1.equals(zdt2)))
println(".isEqual check " + (zdt1.isEqual(zdt2)))
println("app finished")
}
aW1wb3J0IGphdmEudGltZS5fCgpvYmplY3QgTWFpbiBleHRlbmRzIEFwcCB7CgoJcHJpbnRsbigiYXBwIHN0YXJ0ZWQiKQoJCgkvLyBjcmVhdGUgem9uZWQgZGF0ZXRpbWUgZm9yIDFzdCBKYW4gMjAxOCwgMTBhbSBVVEMKCXZhbCB6ZHQxID0gWm9uZWREYXRlVGltZS5vZigyMDE4LCAxLCAxLCAxMCwgMCwgMCwgMCwgWm9uZUlkLm9mKCJVVEMiKSkKCXZhbCB6ZHQyID0gWm9uZWREYXRlVGltZS5wYXJzZSgiMjAxOC0wMS0wMVQxMDowMDowMFoiKQoJCglwcmludGxuKHMiQ09NUEFSSU5HOiAkemR0MSBhbmQgJHpkdDIiKQoJcHJpbnRsbigiPT0gY2hlY2s6ICAgICAgIiArICh6ZHQxID09IHpkdDIpKQoJcHJpbnRsbigiLmVxdWFscyBjaGVjazogIiArICh6ZHQxLmVxdWFscyh6ZHQyKSkpCglwcmludGxuKCIuaXNFcXVhbCBjaGVjayAiICsgKHpkdDEuaXNFcXVhbCh6ZHQyKSkpCgkKCXByaW50bG4oImFwcCBmaW5pc2hlZCIpCn0=