Hi Stephen,
when you said ...
... that helped me a lot! I now have what I was looking for.
My solution is the following:
// Create a zoned datetime
ZonedDateTime zdt = ZonedDateTime.parse(doc['@timestamp'].value.toString());
then:
// Return as long milli
emit(zdt.toInstant().toEpochMilli());
This discussion also helped me to find the correct syntax:
-- Cheers, Nils