Functions
The following functions are available globally.
-
This function returns total number of days for month
Declaration
Swift
func getNumberOfDays(year: Int, month: Int) -> Int
Parameters
year
year
month
month
Return Value
total days in month
-
Helper function for return count to skip for display
Declaration
Swift
func getSkeepCount(_ weekDayNo: Int, startDay: WeekStartDay) -> Int
Parameters
weekDayNo
Int value for week day number
- startDay: Week start day
Return Value
Returns count to skeep
-
Get skeep count for monday
Declaration
Swift
fileprivate func getCountForMonday(_ weekDayNo: Int) -> Int
-
Get skeep count for monday
Declaration
Swift
fileprivate func getCountForSunday(_ weekDayNo: Int) -> Int