KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My goal is to create a vector of POSIXct time stamps given a start, an end and a delta (15min, 1hour, 1day). I hoped I could use seq for this, but I have a problem converting between the numeric and POSIXct representation: now <- Sys.time() now # [1] "2012-01-19 10:30:39 CET" as.POSIXct(as.double(now), origin="1970-01-01", tz="CET") # [1] "2012-01-19 09:30:39 CET" as.POSIXct(as.double(now), origin=as.POSIXct("1970-01-01", tz="CET"), tz="CET") # [1] "2012-01-19 09:30:39 CET" One hour gets lost during this conversion. What am I doing wrong?
Tags (comma-separated)
Save Edits
Cancel