Documentation ¶
Overview ¶
Package calendar generates and has utlilty functions to generate an HTML calendar for use in nlgids.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Calendar ¶
type Calendar struct {
// contains filtered or unexported fields
}
Calendar holds the HTML that makes up the calendar. Each day is indexed by the 12 o' clock night time as a time.Time. All date are in the UTC timezone.
func New ¶
New creates a new month calendar based on d, d must be in the form: YYYY-MM-DD. D can also be the empty string, then the current date is assumed.
func (*Calendar) FreeBusy ¶
FreeBusy will retrieve all evens for this Calendar and mark each day as either free or busy depending on the All-Day events in the Google Calendar. TODO(miek): This works only for 1-day freebusy events, not for multiday events!
Click to show internal directories.
Click to hide internal directories.