/**
* Get the number of rows for the provided month
*
* @param year year
* @param month month
* @return number of rows
*/
public static int getNumOfRowsForTheMonth(int year, int month, int startDayOfTheWeek) {
Calendar cal = Calendar.getInstance();
cal.set(year, month, 1);
MonthDisplayHelper displayHelper = new MonthDisplayHelper(year, month, startDayOfTheWeek);
return displayHelper.getRowOf(cal.getActualMaximum(Calendar.DAY_OF_MONTH)) + 1;
}
FlexibleCalendarHelper.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:FlexibleCalendar
作者:
评论列表
文章目录