setEnd

fun setEnd(month: Long): CalendarConstraints.Builder

A UTC timeInMilliseconds contained within the latest month the calendar will page to. Defaults December, 2100.

If you have access to java.time in Java 8, you can obtain a long using java.time.ZonedDateTime.

`LocalDateTime local = LocalDateTime.of(year, month, 1, 0, 0);
local.atZone(ZoneId.ofOffset("UTC", ZoneOffset.UTC)).toInstant().toEpochMilli();
`
*

If you don't have access to java.time in Java 8, you can obtain this value using a java.util.Calendar instance from the UTC timezone.

`Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
c.set(year, month, 1);
c.getTimeInMillis();
`
*