Skip to content
Prev 105700 / 398503 Next

POSIX and summer savings time redux

When I tried Professor Ripley's example (below), the "tz" argument 
failed to adjust clock time from UTC.

 > (z <- ISOdatetime(1970,1,1,0,0,0, tz="UTC")+1165398135729/1000)
[1] "2006-12-06 09:42:15 UTC"


 > format(z, "%Y-%m-%d %H:%M:%OS3",tz = "CET")
[1] "2006-12-06 09:42:15.729"
# expected CET (Central European Time) clock time is UTC + 1 hour time 
zone adjustment


Am I running into platform dependencies?

(my platform)
platform       i386-pc-mingw32            
arch           i386                       
os             mingw32                    
system         i386, mingw32              
status                                    
major          2                          
minor          4.0                        
year           2006                       
month          10                         
day            03                         
svn rev        39566                      
language       R                          
version.string R version 2.4.0 (2006-10-03)


Thank you most sincerely,

Derek Eder
Prof Brian Ripley wrote: