I run the code below
library(dplyr)
library(lubridate)
xx1<-'20211222000010'
start_time <- strptime(xx1, format = "%Y%m%d%H%M%S")
wqdata_A <- tibble(time = as.POSIXct(10*((1:(1*8640))-1), origin = start_time))
20211222000010
means December 22nd, 2021, 00:00:10
.
I expected that wqdata_A
would give me the series of time starting from
2021-12-22 00:00:10
because I set the origin as start_time
.
However, when I run the code, the starting time of wqdata_A
is 2021-12-22 09:00:10
.
I don't know why the starting time changes even though I set the origin using tibble
.