This is a modern 64-bit Windows CLI calendar utility written entirely in C. Designed for speed and minimal resource usage, it provides a clean, 7-column (Monday-Sunday) monthly view directly in your terminal.
Unlike standard command-line calendars, this tool leverages ANSI escape sequences to provide a rich visual experience, including bold headers and a high-visibility highlight for the current day.
It is built using the Win32 API and standard C time libraries, ensuring accurate weekday calculations and leap-year handling through 9999.
Usage:
cal.exe — Shows current month.
cal.exe 10 — Shows October of the current year.
cal.exe 12 2025 — Shows December 2025.
cal.exe --help — Shows help and usage instructions.
License:
Released into the Public Domain
Features
- Intelligent Highlighting: Automatically detects and highlights "Today's Date" with a Blue/Black theme.
- Smart Parameter Parsing: View the current month by default, or pass specific arguments (e.g., calendar 12 2024) to navigate time.
- Leap Year Aware: Full support for Gregorian leap year rules, including February 29th logic.
- Compact executable - only 21kb