NAME
    Calendar::DatesRoles::DataUser::CalendarVar - Provide Calendar::Dates
    interface from consumer's $CALENDAR

VERSION
    This document describes version 0.001 of
    Calendar::DatesRoles::DataUser::CalendarVar (from Perl distribution
    Calendar-DatesRoles-DataUser-CalendarVar), released on 2019-02-15.

DESCRIPTION
    This role provides Calendar::Dates interface to consumer that has
    $CALENDAR package variable. The variable should contain a DefHash.
    Relevant keys include: "default_lang", "entries".

    "entries" is an array of entries, where each entry is a DefHash.
    Required keys include: "date". "year", "month", "day" keys required by
    Calendar::Dates will be taken from "date" to let you be DRY.

METHODS
  get_min_year
  get_max_year
  get_entries
HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Calendar-DatesRoles-DataUser-CalendarVar>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Calendar-DatesRoles-DataUser-Calendar
    Var>.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    <https://rt.cpan.org/Public/Dist/Display.html?Name=Calendar-DatesRoles-D
    ataUser-CalendarVar>

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

SEE ALSO
    Calendar::Dates

    Calendar::DatesRoles::FromData

AUTHOR
    perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2019 by perlancar@cpan.org.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

