lc_time_tz_convert (public)
lc_time_tz_convert -from from -to to -time_value time_value
Defined in packages/acs-lang/tcl/localization-procs.tcl
Converts a date from one timezone to another.
- Switches:
- -from
(required)- -to
(required)- -time_value
(required)- Timestamp in the 'from' timezone, in the ISO datetime format ("%Y-%m-%d %H:%M:%S" as per Tcl clock api). Some seemingly invalid dates such as "2000-00-00 00:00:00" may be accepted and normalized to a valid date, also according to he behavior of the Tcl clock api.
- Returns:
- Timestamp in the 'to' timezone, also in ISO datetime format, or the empty string when 'time_value' or one of the timezones are invalid, or when it is otherwise impossible to determine the right conversion.
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- lang_test__lc_procs, lang_test__lc_timezones