瀏覽代碼

* provided additional information in comments in the include file header

git-svn-id: trunk@47547 -
Tomas Hajny 4 年之前
父節點
當前提交
7169b6d04c
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      rtl/objpas/sysutils/tzenv.inc

+ 10 - 0
rtl/objpas/sysutils/tzenv.inc

@@ -6,6 +6,16 @@
     Support routines for calculation of local timezone and DST time
     Support routines for calculation of local timezone and DST time
     offset based on information provided in the environment variable TZ.
     offset based on information provided in the environment variable TZ.
 
 
+    There are various ways for specifying the timezone details using the
+    TZ variable. The more information is provided, the better results.
+    As an example, the following setting provides full information
+    including details for DST on/off switching date and time:
+    TZ=CET-1CEST,3,-1,0,7200,10,-1,0,10800,3600
+    (CET timezone is 1 hour in advance from UTC, there is DST called CEST,
+    DST starts on the last Sunday of March at 2am and finishes on the last
+    Sunday of October at 3am, the DST difference is 1 hour).
+    However, this is by no means the only supported syntax.
+
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
     for details about the copyright.