Skip to contents

Package

calcal calcal-package
calcal: Calendrical Calculations

Gregorian dates

gregorian_date()
Gregorian calendar dates
as_gregorian()
Convert to a Gregorian date
day_of_week() day_of_month() day_of_year() days_remaining() week_of_month() week_of_year() month_of_year() year()
Extract parts of a Gregorian date

Holidays and special days

Time of day

time_of_day()
Time of day
as_time_of_day()
Convert to time of day

Locations

location()
Locations

Astronomical functions

lunar_phase()
Lunar phase at date
new_moons() full_moons()
Full moons and new moons in Gregorian years
sunrise() sunset()
Sunrise and sunset given a date and location

Non-Gregorian calendars

iso_date() as_iso()
ISO calendar dates
julian_date() as_julian()
Julian calendar dates
hebrew_date() as_hebrew()
Hebrew calendar dates
roman_date() as_roman()
Roman calendar dates

Fixed RD dates

rd_fixed() as_rd()
RD fixed dates

Granularities

linear_cyclic()
Create linear-cyclic granularity combinations