@Override
public CompiledFunctionDefinition compile(final FunctionCompilationContext context, final Instant atInstant) {
final OffsetDateTime odt = atInstant.atOffset(ZoneOffset.UTC);
final OffsetDateTime start = odt.withHour(0).withMinute(0).withSecond(0).withNano(0); // Start of the UTC day
final OffsetDateTime end = start.plusDays(1).minusNanos(1); // End of the UTC day
return new Compiled(start.toInstant(), end.toInstant());
}
}