time information.
/* -*-C-*-
-$Id: dosenv.c,v 1.7 1995/04/23 03:04:52 cph Exp $
+$Id: dosenv.c,v 1.8 1995/04/23 03:16:35 cph Exp $
Copyright (c) 1992-95 Massachusetts Institute of Technology
(ts -> tm_hour) = (buffer -> hour);
(ts -> tm_min) = (buffer -> minute);
(ts -> tm_sec) = (buffer -> second);
- {
- /* In localtime() encoding, 0 is Sunday; in ours, it's Monday. */
- int wday = (buffer -> day_of_week);
- (ts -> tm_wday) = ((wday == 6) ? 0 : (wday + 1));
- }
+ (ts -> tm_isdst) = (buffer -> daylight_savings_time);
STD_UINT_SYSTEM_CALL (syscall_mktime, t, (DOS_mktime (ts)));
return (t);
}
/* -*-C-*-
-$Id: ntenv.c,v 1.11 1995/04/23 03:04:00 cph Exp $
+$Id: ntenv.c,v 1.12 1995/04/23 03:16:24 cph Exp $
Copyright (c) 1992-95 Massachusetts Institute of Technology
(ts -> tm_hour) = (buffer -> hour);
(ts -> tm_min) = (buffer -> minute);
(ts -> tm_sec) = (buffer -> second);
- {
- /* In localtime() encoding, 0 is Sunday; in ours, it's Monday. */
- int wday = (buffer -> day_of_week);
- (ts -> tm_wday) = ((wday == 6) ? 0 : (wday + 1));
- }
+ (ts -> tm_isdst) = (buffer -> daylight_savings_time);
STD_UINT_SYSTEM_CALL (syscall_mktime, t, (NT_mktime (ts)));
return (t);
}
/* -*-C-*-
-$Id: os2env.c,v 1.4 1995/04/23 03:03:44 cph Exp $
+$Id: os2env.c,v 1.5 1995/04/23 03:16:49 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
(ts . tm_hour) = (buffer -> hour);
(ts . tm_min) = (buffer -> minute);
(ts . tm_sec) = (buffer -> second);
- (ts . tm_isdst) = -1; /* Let mktime figure it out */
+ (ts . tm_isdst) = (buffer -> daylight_savings_time);
{
time_t t = (mktime (&ts));
if (t < 0)
/* -*-C-*-
-$Id: uxenv.c,v 1.13 1995/04/23 03:04:58 cph Exp $
+$Id: uxenv.c,v 1.14 1995/04/23 03:16:42 cph Exp $
Copyright (c) 1990-95 Massachusetts Institute of Technology
(ts -> tm_hour) = (buffer -> hour);
(ts -> tm_min) = (buffer -> minute);
(ts -> tm_sec) = (buffer -> second);
-#if 0
- {
- /* In localtime() encoding, 0 is Sunday; in ours, it's Monday. */
- int wday = (buffer -> day_of_week);
- (ts -> tm_wday) = ((wday == 6) ? 0 : (wday + 1));
- }
-#else
- (ts -> tm_wday) = 0;
-#endif
- (ts -> tm_yday) = 0;
- (ts -> tm_isdst) = -1; /* Let mktime figure it out */
+ (ts -> tm_isdst) = (buffer -> daylight_savings_time);
#ifdef HAVE_MKTIME
STD_UINT_SYSTEM_CALL (syscall_mktime, t, (UX_mktime (ts)));
#else