www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/31/14:10:14

Date: Wed, 31 Aug 1994 13:15:33 -0400
From: davis AT amy DOT tch DOT harvard DOT edu ("John E. Davis")
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: New time routines

>> Forgive me for being naive. I am probably missing something very fundamental
>> but I simply want the time routines to return the same value that the time
>> and date commands give at the DOS prompt--- independent of environment
>> variable settings and zoneinfo files.  No other DOS compiler needs it and no
>> how hard you try, DOS is not Unix and will never be POSIX compliant.
>
>I'd like this also, but things get more complicated when you connect machines
>together.  For example, I have a routine from NCSA which will set my PC clock

I guess that this becomes an issue when DOS machines are connected together
and there is a need for a consistent time.  Fortunately, I have never had to
worry about this.  It seems to me that if DOS machines are networked
together that it would be no big deal to setup the proper environment
variables or to have the zoneinfo files installed.  However, most machines
are standalone and, in my opinion, all that is really important is that the
time routines report the same value as what DOS reports.  I have not
upgraded to 1.12 yet so I have not tested the time routines but as of 1.11,
using ctime did not give the same value as DOS.  As a result, I wrote the
function I previously posted.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019