View Source Squeeze.Calendar (OpenPace v0.0.1)

Calendar module to help with visible_dates of calendar and other helper functions.

Link to this section Summary

Functions

Get visible dates for a calendar based on type which can either be "day" or "month".

Link to this section Functions

Link to this function

visible_dates(base, type)

View Source

Get visible dates for a calendar based on type which can either be "day" or "month".

Returns a date range based of of the base day and the type.

  • "day" - the previous day and the following day
  • "month" - returns a date range starting with the Monday on the first week of the month and the Sunday of the last week of the month