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