_acs-datetime__dt_get_info (private)

 _acs-datetime__dt_get_info

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_get_info dt_get_info (public) _acs-datetime__dt_get_info _acs-datetime__dt_get_info _acs-datetime__dt_get_info->aa_equals _acs-datetime__dt_get_info->aa_log _acs-datetime__dt_get_info->aa_log_result _acs-datetime__dt_get_info->dt_get_info

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set date_info [dt_get_info 2000-12-08]

    foreach {key expected} {
        julian_date_today 2451887
        month December
        year 2000
        first_julian_date 2451875
        first_julian_date_of_month 2451880
        num_days_in_month 31
        last_julian_date_in_month 2451910
        last_julian_date 2451916
        first_day 26
        first_day_of_month 6
        last_day 31
        next_month 2001-01-01
        prev_month 2000-11-01
        beginning_of_year 2000-01-01
        days_in_last_month 30
        next_month_name January
        prev_month_name November
    } {
        aa_equals "Date '2000-12-08': $key is expected"  [set $key$expected
    }
}} {
          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_get_info (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: