calendar

Library to display a full calendar for specific months and years using the native DateTime class

0 downloads owners: imabd645 repository

Install

ez install calendar

Dependencies (1.0.0)

PackageRange
No dependencies.

Readme

Calendar Library

The calendar library provides functions to display well-formatted calendars on the console in EZ. It utilizes the native DateTime class.

Installation

Since this library is included in the standard ezlib packages, you can import it directly:

use "calendar"

Functions

printMonth(year, month)

Displays a calendar grid for a specific month and year.

calendar.printMonth(2024, 2)

printYear(year)

Displays a full 12-month calendar for a given year.

calendar.printYear(2026)

printCurrentMonth()

Displays the calendar grid for the current system month.

calendar.printCurrentMonth()

printCurrentYear()

Displays the full 12-month calendar for the current system year.

calendar.printCurrentYear()

Example Usage

use "calendar"

out "=== This Month ==="
calendar.printCurrentMonth()

out ""
out "=== 2024 Leap Year ==="
calendar.printMonth(2024, 2)

Versions

VersionSizeDownloadsPublished
1.0.0 1.6 KB 0 1 hour ago

Integrity

sha256  c17f8d2fed14ab574810bc143c8fd51dcd16683597f0f8ac18f4d4c9e5a59b2a