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):
test_dt_date_rollover_errors dt_date_rollover_errors (test acs-datetime) dt_first_day_of_month dt_first_day_of_month test_dt_date_rollover_errors->dt_first_day_of_month test_dt_early_years dt_early_years (test acs-datetime) test_dt_early_years->dt_first_day_of_month test_dt_first_day_of_month dt_first_day_of_month (test acs-datetime) test_dt_first_day_of_month->dt_first_day_of_month test_dt_legacy_short_years dt_legacy_short_years (test acs-datetime) test_dt_legacy_short_years->dt_first_day_of_month dt_make_ansi_date dt_make_ansi_date (private) dt_first_day_of_month->dt_make_ansi_date dt_get_info dt_get_info (public) dt_get_info->dt_first_day_of_month packages/calendar/www/mini-calendar.tcl packages/calendar/ www/mini-calendar.tcl packages/calendar/www/mini-calendar.tcl->dt_first_day_of_month packages/calendar/www/view-month-display.tcl packages/calendar/ www/view-month-display.tcl packages/calendar/www/view-month-display.tcl->dt_first_day_of_month packages/xowiki/lib/portlets/weblog-mini-calendar.tcl packages/xowiki/ lib/portlets/weblog-mini-calendar.tcl packages/xowiki/lib/portlets/weblog-mini-calendar.tcl->dt_first_day_of_month

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

[ hide source ] | [ make this the default ]
Show another procedure: