Utility functions for the Timing library, including calendar printing.
Utility functions for the Timing library, including calendar printing.
(print-calendar year month)
(print-calendar year
month
{:keys [first-day-of-week day-width show-week-numbers]
:or {first-day-of-week 1 day-width 3 show-week-numbers false}})
Prints a formatted calendar for the given month and year.
Options:
Example: (print-calendar 2023 12) (print-calendar 2023 12 {:first-day-of-week 7 :show-week-numbers true})
Prints a formatted calendar for the given month and year. Options: - :first-day-of-week - Day to start week with (1=Monday, 7=Sunday), default 1 - :day-width - Width of each day cell, default 3 - :show-week-numbers - Whether to show week numbers, default false Example: (print-calendar 2023 12) (print-calendar 2023 12 {:first-day-of-week 7 :show-week-numbers true})
(print-year-calendar year)
(print-year-calendar year options)
Prints calendars for all 12 months of the given year.
Options are passed through to print-calendar.
Example: (print-year-calendar 2024) (print-year-calendar 2024 {:first-day-of-week 7})
Prints calendars for all 12 months of the given year. Options are passed through to print-calendar. Example: (print-year-calendar 2024) (print-year-calendar 2024 {:first-day-of-week 7})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close