template::util::date::monthName (public)

 template::util::date::monthName month length

Defined in packages/acs-templating/tcl/date-procs.tcl

Return the specified month name (short or long)

Parameters:
month
length

Partial Call Graph (max 5 caller/called nodes):
%3 template::util::date::get_property template::util::date::get_property (public) template::util::date::monthName template::util::date::monthName template::util::date::get_property->template::util::date::monthName template::widget::monthFragment template::widget::monthFragment (public) template::widget::monthFragment->template::util::date::monthName lc_time_fmt lc_time_fmt (public) template::util::date::monthName->lc_time_fmt util::trim_leading_zeros util::trim_leading_zeros (public) template::util::date::monthName->util::trim_leading_zeros

Testcases:
No testcase defined.
Source code:
    # trim leading zeros to avoid octal problem
    set month [util::trim_leading_zeros $month]
    if {$length eq "long"} {
        return [lc_time_fmt "2002-[format "%02d$month]-01" "%B"]
    } else {
        return [lc_time_fmt "2002-[format "%02d$month]-01" "%b"]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: