X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..a3ac9333389dcfa7fe22e8b31524b9f7f580a770:/h/tws.h diff --git a/h/tws.h b/h/tws.h index 5d99cf5a..66e33613 100644 --- a/h/tws.h +++ b/h/tws.h @@ -1,6 +1,4 @@ - -/* - * tws.h +/* tws.h -- time routines. */ /* If the following is #defined, a timezone given as a numeric-only offset will @@ -27,20 +25,15 @@ 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 */ -#define TW_SUCC 0x0040 /* whether parsing was successful */ -#define TW_YES 0x0040 /* yes, found */ -#define TW_NO 0x0000 /* no, not found */ +#define TW_SUCC 0x0040 /* Parsing was successful. */ #define dtwszone(tw) dtimezone (tw->tw_zone, tw->tw_flags) @@ -59,10 +52,8 @@ struct tws *dlocaltime (time_t *); struct tws *dgmtime (time_t *); char *dasctime (struct tws *, int); char *dtimezone (int, int); -void twscopy (struct tws *, struct tws *); int twsort (struct tws *, struct tws *); time_t dmktime (struct tws *); void set_dotw (struct tws *); struct tws *dparsetime (char *); -