]> diplodocus.org Git - nmh/blobdiff - h/tws.h
sizeof char is always 1, so don't bother to divide by it.
[nmh] / h / tws.h
diff --git a/h/tws.h b/h/tws.h
index 051ee4c96c60a369e6dec079a7229c3d5dd6747a..17a01a2d61216446170f3e181d3d2f03561a1143 100644 (file)
--- a/h/tws.h
+++ b/h/tws.h
@@ -1,12 +1,11 @@
 /* tws.h -- time routines.
  */
 
-/* If the following is #defined, a timezone given as a numeric-only offset will
+/* A timezone given as a numeric-only offset will
    be treated specially if it's in a zone that observes Daylight Saving Time.
    For instance, during DST, a Date: like "Mon, 24 Jul 2000 12:31:44 -0700" will
    be printed as "Mon, 24 Jul 2000 12:31:44 PDT".  Without the code activated by
-   the following #define, that'd be incorrectly printed as "...MST". */
-#define        ADJUST_NUMERIC_ONLY_TZ_OFFSETS_WRT_DST 1
+   the following #define, that would be incorrectly printed as "...MST". */
 
 struct tws {
     int tw_sec;                /* seconds after the minute - [0, 61] */
@@ -14,7 +13,7 @@ struct tws {
     int tw_hour;       /* hour since midnight - [0, 23]      */
     int tw_mday;       /* day of the month - [1, 31]         */
     int tw_mon;                /* months since January - [0, 11]     */
-    int tw_year;       /* 4 digit year (ie, 1997)            */
+    int tw_year;       /* 4 digit year (e.g. 1997)           */
     int tw_wday;       /* days since Sunday - [0, 6]         */
     int tw_yday;       /* days since January 1 - [0, 365]    */
     int tw_zone;
@@ -25,13 +24,10 @@ struct tws {
 #define        TW_NULL  0x0000
 
 #define        TW_SDAY  0x0003 /* how day-of-week was determined */
-#define        TW_SNIL  0x0000 /*   not given                    */
 #define        TW_SEXP  0x0001 /*   explicitly given             */
 #define        TW_SIMP  0x0002 /*   implicitly given             */
 
-#define        TW_SZONE 0x0004 /* how timezone was determined    */
-#define        TW_SZNIL 0x0000 /*   not given                    */
-#define        TW_SZEXP 0x0004 /*   explicitly given             */
+#define        TW_SZEXP 0x0004 /* Explicit timezone. */
 
 #define        TW_DST   0x0010 /* daylight savings time          */
 #define        TW_ZONE  0x0020 /* use numeric timezones only     */