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
month
Returns:
the weekday number of the first day for the given month/year

Partial Call Graph (max 5 caller/called nodes):
%3 test_dt_first_day_of_month dt_first_day_of_month (test acs-datetime) dt_first_day_of_month dt_first_day_of_month test_dt_first_day_of_month->dt_first_day_of_month 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
Source code:
    # calendar widgets are expecting integers 1-7, so we must adjust
    return [expr {[clock format [clock scan $year-$month-01] -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: