Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cal

Display a calendar.

Implemented

  • Single month display (default)
  • Three-month display (-3)
  • Year display (-y)
  • Next twelve months (-Y)
  • N-month display (-n)
  • Monday (-m) or Sunday (-s) as first day of week
  • Julian/ordinal day numbering (-j)
  • Configurable number of columns (-c)
  • Positional arguments: [[[day] month] year]
  • Month names and abbreviations as arguments (e.g., cal March)
  • Special date words: today, tomorrow, yesterday

Not yet implemented

  • --vertical (ncal-style vertical layout)
  • --reform (Julian/Gregorian calendar reform date handling)
  • --week (ISO/US week number display)
  • --color (terminal colorization of today, weekends, headers)
  • --span (center multi-month display on the target date)
  • Locale-aware month/day names (currently English only)
  • Relative date expressions (+2days, 1 week ago)