_acs-datetime__dt_first_day_of_month (private)

 _acs-datetime__dt_first_day_of_month

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) dt_first_day_of_month dt_first_day_of_month (public) _acs-datetime__dt_first_day_of_month _acs-datetime__dt_first_day_of_month _acs-datetime__dt_first_day_of_month->aa_equals _acs-datetime__dt_first_day_of_month->aa_log _acs-datetime__dt_first_day_of_month->aa_log_result _acs-datetime__dt_first_day_of_month->dt_first_day_of_month

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set year 2020
    #
    # First day of month, week starting on Sunday
    #
    set month_day {01 4 02 7 03 1 04 4 05 6 06 2 07 4 08 7 09 3 10 5 11 1 12 3}
    dict for {month day} $month_day {
        aa_equals "First day of $year-$month" "[dt_first_day_of_month $year $month]" "$day"
    }
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "dt_first_day_of_month (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: