Added month line.
This commit is contained in:
parent
5f63221a72
commit
baa0fd7c69
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue