<!-- generated by scripts/docs/generate-reference.ts — do not edit -->

astro_date_convert

Calendar and timezone conversions — julian-gregorian, timezone, easter-date.

Description

Calendar and timezone conversions — julian-gregorian, timezone, easter-date.

Methods:
  julian-gregorian [Free] — convert a date between the Julian and Gregorian calendars, with Julian Day Number + weekday
  timezone         [Free] — convert a wall-clock date/time from one IANA timezone to another via UTC
  easter-date      [Free] — date of Easter for a year in the Western (Gregorian) or Orthodox (Julian) tradition

Input schema

julian-gregorian

FieldTypeRequiredConstraints
date.yearintegeryesmin -4712, max 4000, int
date.monthintegeryesmin 1, max 12, int
date.dayintegeryesmin 1, max 31, int
calendar"julian" | "gregorian"yes

timezone

FieldTypeRequiredConstraints
dateTime.yearintegeryesmin 1900, max 2100, int
dateTime.monthintegeryesmin 1, max 12, int
dateTime.dayintegeryesmin 1, max 31, int
dateTime.hourintegeryesmin 0, max 23, int
dateTime.minuteintegeryesmin 0, max 59, int
dateTime.secondintegernomin 0, max 59, int
fromZonestringyesminLength 1
toZonestringyesminLength 1

easter-date

FieldTypeRequiredConstraints
yearintegeryesmin 326, max 4000, int
tradition"western" | "orthodox"no