template::util::date::now (public)

 template::util::date::now

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

Create a new Date object for the current date and time.

Partial Call Graph (max 5 caller/called nodes):
%3 test_sql_date sql_date (test acs-templating) template::util::date::now template::util::date::now test_sql_date->template::util::date::now template::util::date::create template::util::date::create (public) template::util::date::now->template::util::date::create util::trim_leading_zeros util::trim_leading_zeros (public) template::util::date::now->util::trim_leading_zeros template::util::date::set_property template::util::date::set_property (public) template::util::date::set_property->template::util::date::now

Testcases:
sql_date
Source code:
    set now [clock format [clock seconds] -format "%Y %m %d %H %M %S"]
    set today [list]

    foreach v $now {
        lappend today [util::trim_leading_zeros $v]
    }

    return [create {*}$today]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: