library(h2o)
localH2O = h2o.init()
# Check the Timezone listed
currentTimeZone = h2o.getTimezone(localH2O)
print(currentTimeZone)
dates = c("Fri Jan 10 00:00:00 1969",
"Tue Jan 10 04:00:00 2068",
"Mon Dec 30 01:00:00 2002",
"Wed Jan 1 12:00:00 2003")
df = data.frame(dates)
hdf = as.h2o(localH2O, df, "hdf", TRUE)
# Returns Dates assuming PST
hdf$ca = as.Date(hdf$dates, "%c")
# Returns Dates assuming EST
# h2o.listTimezones(localH2O)
h2o.setTimezone(localH2O, tz = "EST")
hdf$nyc = as.Date(hdf$dates, "%c")
hdf
Run the code above in your browser using DataLab