Код: Выделить всё
import org.joda.time.DateTime;
DateTime date;
return date.dayOfYear().isLeap()
Мы используем только Григорианский календарь (ISO 8601).
Подробнее здесь: https://stackoverflow.com/questions/793 ... ear-isleap
Код: Выделить всё
import org.joda.time.DateTime;
DateTime date;
return date.dayOfYear().isLeap()