_acs-lang__test_timezone_offset (private)
_acs-lang__test_timezone_offset
Defined in packages/acs-lang/tcl/test/locale-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ set clock_offset [clock format [clock seconds] -format %z -timezone [lang::system::timezone]] regexp {^(\+|-)0*(\d+)$} $clock_offset _ op hours if {$op eq "-"} { set expected - } append expected [expr {$hours / 100}] aa_equals "lang::system::timezone_utc_offset returns expected" [lang::system::timezone_utc_offset] $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" "test_timezone_offset (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle