ez_calendar v0.1.4 EZCalendar

Functions for building the calendar structs.

Summary

Functions

Build a calendar given a calendar module, repo, query, params and options. Returns the a tuple containing :ok and the calendor or :error and the reason

The same as build but returns a calendar or raises an error

Functions

build(calendar, repo, query, date, opts)

Build a calendar given a calendar module, repo, query, params and options. Returns the a tuple containing :ok and the calendor or :error and the reason.

The params provided in the args are parsed into a date erl and passed to the calendar modules date_range function.

The timezone and schema field used can be set with :tz and :field as options

build!(calendar, repo, query, date, opts)

The same as build but returns a calendar or raises an error