Is there a way to do it while connected to Neptune? I want to use the timestamp as part of a "has()" traversal step in a query.
I get the following issue when I attempt your example while connected to Neptune
gremlin> g.inject(0).map {LocalDate.parse("20220812", DateTimeFormatter.BASIC_ISO_DATE).atStartOfDay(ZoneId.of("America/Chicago")).toInstant().toEpochMilli()}
{"requestId":"6e7b3cae-633c-4eea-94e2-3ec0fe6a11d4","code":"MalformedQueryException","detailedMessage":"Failed to interpret Gremlin query: Query parsing failed at line 1, character position at 17, error message : token recognition error at: 'L'"}
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin>