How calogica/dbt-date works
dbt-date is a dbt macro package for cross-database date and calendar logic. A project model invokes its macros to generate date spines, date dimensions, fiscal calendars, or individual date expressions. The README documents the date-dimension-to-fiscal-calendar use and the date-spine dependency; other macro internals are not shown, so no additional call relationships are inferred.
Main entry points: get_base_dates.sql Base date spine · get_date_dimension.sql Date dimension · get_fiscal_periods.sql Fiscal periods · calendar_date Date parts
Components 12
Calendar generation
- Base date spine
macros/get_base_dates.sql - Date dimension
macros/get_date_dimension.sql - Spine utilities
macros/_utils
Calendar expressions
- Date parts
macros/calendar_date - Relative periods
macros/calendar_date - Week calculations
macros/calendar_date - Timezone and epochs
macros/calendar_date
Fiscal calendars
- Fiscal periods
macros/fiscal_date/get_fiscal_periods.sql - Fiscal year dates
macros/fiscal_date/get_fiscal_year_dates.sql
Date utilities
- Date and datetime
macros/_utils/modules_datetime.sql
Other components
- dbt project model
- dbt-utils
Connections 10
- dbt project model → Base date spine: invokes
README.md - dbt project model → Date dimension: invokes
README.md - dbt project model → Fiscal periods: invokes
README.md - dbt project model → Date parts: invokes
README.md - dbt project model → Relative periods: invokes
README.md - dbt project model → Week calculations: invokes
README.md - dbt project model → Timezone and epochs: invokes
README.md - dbt project model → Date and datetime: invokes
README.md - Base date spine → dbt-utils: wraps date_spine
README.md - Date dimension → Fiscal periods: provides dates
README.md