That is embarrassingthanks for pointing out my mistake.
Chris
--
View this message in context:
http://r.789695.n4.nabble.com/Time-OffSet-From-GMT-Losing-it-tp2968940p2990987.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@
On Oct 8, 2010, at 3:43 PM, rivercode wrote:
Losing time offset from GMT:
sTime = as.POSIXct(paste("2008-03-03","09:30:01"),
origin="1970-01-01")
sTime
[1] "2008-03-03 09:30:01 EST" < 9.31am EST
sTime
[1] 1204554601
t = as.numeric(sTime)
as.POSIXct(t, origin="1970-01-01")
[1
Losing time offset from GMT:
> sTime = as.POSIXct(paste("2008-03-03","09:30:01"), origin="1970-01-01")
> sTime
[1] "2008-03-03 09:30:01 EST" < 9.31am EST
> sTime
[1] 1204554601
> t = as.numeric(sTime)
> as.POSIXct(t, origin="1970-01-01")
[1] "2008-03-03 14:30:01 EST" <- no tz option
3 matches
Mail list logo