在Linux上工作的相同代码不适用于FreeBSD% set timeZone "-4:0"% set timeZone [format "%+03d%02d" {*}[scan $timeZone "%d:%d"]]% puts $tcl_versionOn FreeBSD-4:0
% set ti
我通常使用以下代码来获取本地时区: import platformimport datetime
#LOCAL_TIMEZONE = datetime.datetime.now(datetime.timezone.utc).astimezone().tzinfo # "CEST", etc on Linux, but 'Romance Standard Time' on Windows= pytz.timezone(get_loca