Added month line.

This commit is contained in:
Christian P. MOMON 2021-12-03 18:17:22 +01:00
parent 5f63221a72
commit baa0fd7c69

View file

@ -107,6 +107,17 @@ public final class Calgen
System.out.println(line);
}
//
if (current.getDayOfMonth() == 1)
{
String dash = StringUtils.repeat("-", 25);
String monthName = current.getMonth().getDisplayName(TextStyle.FULL, Locale.FRENCH);
monthName = StringUtils.capitalize(monthName);
String monthLine = String.format("%s %s %s", dash, monthName, dash);
System.out.println(monthLine);
}
//
current = current.minusDays(1);
}