lc_time_utc_to_local (public)
lc_time_utc_to_local time_value [ tz ]
Defined in packages/acs-lang/tcl/localization-procs.tcl
Converts a Universal Time to local time for the specified timezone.
- Parameters:
- time_value (required)
- UTC time in the ISO datetime format.
- tz (optional)
- Timezone that must exist in tz_data table.
- Returns:
- Local time
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- lang_test__lc_procs
Source code: if { $tz eq "" } { set tz [lang::conn::timezone] } set local_time [lc_time_tz_convert -from UTC -to $tz -time_value $time_value] if {$local_time eq ""} { # # An empty result normally means a broken date or timezone. We # throw a warning in this case. # ns_log warning "lc_time_utc_to_local: Timezone adjustment in ad_localization.tcl found no conversion to UTC for $time_value $tz" } return $local_timeXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-lang/tcl/localization-procs.xql