dt_prev_month (public)

 dt_prev_month year month

Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl

Parameters:
year (required)
month (required)
Returns:
the ANSI date for the previous month

Partial Call Graph (max 5 caller/called nodes):
%3 test_dt_prev_next_month dt_prev_next_month (test acs-datetime) dt_prev_month dt_prev_month test_dt_prev_next_month->dt_prev_month ad_log ad_log (public) dt_prev_month->ad_log dt_get_info dt_get_info (public) dt_get_info->dt_prev_month

Testcases:
dt_prev_next_month
Source code:
    try {
        return [clock format [clock add [clock scan $year-$month-01] -1 month] -format %Y-%m-%d]
    } on error {errmsg} {
        ad_log warning "Cannot get previous month date for $year-$month"
        return ""
    }
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: