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):
- 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