Compare commits

..

2 commits

Author SHA1 Message Date
e285b88ba8 Build 0.0.2 2021-12-03 18:17:49 +01:00
baa0fd7c69 Added month line. 2021-12-03 18:17:22 +01:00
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Fri Dec 03 18:08:47 CET 2021 #Fri Dec 03 18:17:44 CET 2021
build.number=2 build.number=3

View file

@ -107,6 +107,17 @@ public final class Calgen
System.out.println(line); 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); current = current.minusDays(1);
} }