[R] POSIX and summer savings time

Derek Eder derek.eder at lungall.gu.se
Wed Dec 6 19:14:07 CET 2006


I have a time stamp in UTC (GMT) time:

 >  format(ISOdatetime(1970,1,1,0,0,0)+1165398135729/1000,"%Y-%m-%d 
%H:%M:%OS3")

"2006-12-06 09:42:18.823"  (note millisecond accuracy, but not relevant 
to question here)

Now, this time stamp actually "happened" at local (Swedish) time one 
hour later (10:42).

Regarding summer/winter adjustments in time ("spring forward, fall 
back"):   Is there a way of automatically recovering the local time 
adjustments for a given date?  E.g., a date/time in springtime = GMT +2 
, else GMT +1

Thanks,

Derek Eder


-- 
Derek N. Eder

Gothenburg University 
VINKLA - Vigilance and Neurocognition laboratory 

SU/Sahlgrenska
Utvecklingslab 1, Med
Gröna stråket 8
SE 413 45 Göteborg (Gothenburg)
Sverige (Sweden)

+46 (031)* 342 8261 (28261 inom Sahlgrenska)
+46 0704 915 714 (mobile)
+46 (031) 25 97 07 (home)

* omit the 0 when calling from outside Sweden




More information about the R-help mailing list