[R] system time is 5 hours off in Windows

Setzer.Woodrow@epamail.epa.gov Setzer.Woodrow at epamail.epa.gov
Mon Jan 22 16:49:33 CET 2001


Sorry to take up more bandwidth on a relatively minor point, but, under
R-1.1.1, date() returns the system time, whereas under R-1.2.0 and R-1.2.1,
date() returns system time + 5 hours (as if it were really returning UTC).
Does msvcrt.dll handle the date-time functions?  Maybe I've got a problem
there.

R. Woodrow Setzer, Jr.                                            Phone:
(919) 541-0128
Experimental Toxicology Division                       Fax:  (919) 541-5394
Pharmacokinetics Branch
NHEERL MD-74; US EPA; RTP, NC 27711


                                                                                                                
                    Prof Brian D                                                                                
                    Ripley               To:     Woodrow Setzer/RTP/USEPA/US at EPA                                
                    <ripley at stats        cc:                                                                    
                    .ox.ac.uk>           Subject:     Re: [R] system time is 5 hours off in Windows             
                    Sent by:                                                                                    
                    ripley at auk.st                                                                               
                    ats                                                                                         
                                                                                                                
                                                                                                                
                    01/19/2001                                                                                  
                    06:44 PM                                                                                    
                                                                                                                
                                                                                                                



On Fri, 19 Jan 2001, Prof Brian D Ripley wrote:

> On Fri, 19 Jan 2001 Setzer.Woodrow at epamail.epa.gov wrote:
>
> > Am I missing a configuration step?  The value returned by date() and
> > Sys.time() is five hours later than the system time.  Furthermore,
>
> That I have not seen.  Entirely possible, given Windows bugs. I am really
> sick of having to correct their mistakes in standard C library functions
> in this area.

To confirm, if I set my NT4 computer to that time zone, it reports
Eastern Daylight Time as the time zone (rather than GB Daylight Time)
but Windows and R do agree on the time.

Looks like a peculiarity of your setup. If it were common I would be
suprised that it had not been reported before. (Some people are all to keen
to report non-bugs.)   I seem to remember there are issues on PCs about
running clocks on UTC or local time that surface if they are dualbootable
(Windows/Linux).

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595





-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list