dt_first_day_of_month (public)
dt_first_day_of_month year month
Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl
- Parameters:
- year (required)
- month (required)
- Returns:
- the weekday number of the first day for the given month/year
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- dt_first_day_of_month, dt_early_years, dt_date_rollover_errors, dt_legacy_short_years
Source code: # calendar widgets are expecting integers 1-7, so we must adjust return [expr {[clock format [clock scan [dt_make_ansi_date $year $month 1] -format %Y-%m-%d] -format %w] + 1}]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-datetime/tcl/acs-datetime-procs.xql