Spec-Zone.ru › Nushell

cal for generators

Display a calendar.

Signature

> cal {flags}

Flags

  • --year, -y: Display the year column.
  • --quarter, -q: Display the quarter column.
  • --month, -m: Display the month column.
  • --as-table, -t: Output as a table.
  • --full-year {int}: Display a year-long calendar for the specified year.
  • --week-start {string}: Display the calendar with the specified day as the first day of the week.
  • --month-names: Display the month names in a separate column.

Input/output types:

input output
nothing string
nothing table

Examples

This month's calendar

> cal

The calendar for all of 2012

> cal --full-year 2012

This month's calendar with the week starting on Monday

> cal --week-start mo

How many 'Friday the Thirteenths' occurred in 2015?

> cal --as-table --full-year 2015 | where fr == 13 | length

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/cal.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API