private PlainTime getTimeUTC() { int timeOfDay = getTimeOfDay(this); int minutes = timeOfDay / 60; int hour = minutes / 60; int minute = minutes % 60; int second = timeOfDay % 60; int nano = this.getNanosecond(); return PlainTime.of(hour, minute, second, nano); }
private static int getMaxSecondOfMinute(Moment context) { int minutes = getTimeOfDay(context) / 60; int second = 59; if (((minutes / 60) == 23) && ((minutes % 60) == 59)) { PlainDate date = context.getDateUTC(); second += LeapSeconds.getInstance().getShift(date); } return second; }
int timeOfDay = getTimeOfDay(this); int minutes = timeOfDay / 60; int hour = minutes / 60;