2009-10-15 48 views
5

我剛剛開始使用組織模式,並且非常喜歡它。我在倫敦工作,使用基於美國東海岸的OpenVMS運行的xemacs。有沒有辦法讓組織模式使用服務器默認的時區以外的時區?設置組織模式的時區

我已經試過:

(setq calendar-time-zone 0) 
(setq calendar-standard-time-zone-name "GMT") 
(setq calendar-daylight-time-zone-name "GDT") 

沒有運氣。

回答

5

事實證明:

(set-time-zone-rule "GMT-1") 

作品。

我不完全清楚爲什麼這樣的:

(set-time-zone-rule "BST") 

給出了錯誤的輸出(它導致個1小時趕到,即使BST是倫敦,英國目前的時區字符串)。

+1

由於夏令時? – justinhj 2009-10-15 16:13:07

+0

事實證明'(set-time-zone-rule)'需要'/ usr/share/zoneinfo'中的路徑(至少在GNU/Linux上),因爲你可能會設置你的'TZ'環境變量。例如。 '(set-time-zone-rule「/ usr/share/zoneinfo/Asia/Seoul」) – 2013-11-17 08:22:45