2
I have a comparison that checks whether the current time is after the time set.
LocalTime horaConfig = new LocalTime(6, 00, 00);
LocalTime horaAtual = new LocalTime(20, 00, 00);
horaAtual.isAfter(horaConfig);
My problem is, since the current time is 8:00 p.m., Joda Time understands that 6:00 in the morning is after 8:00 P.M. and ends up stopping my process. Only working if I set a time till 11:00.
Is there a method to solve this problem of comparing with Time?
It’s not just checking that one is smaller than the other?
– Gustavo Cinque