powered by
Function to pass objects of class ee$Date to as.POSIXct or numeric (unix time stamp)
eedate_to_rdate(ee_date, js = FALSE)
EE date object (ee$Date)
Logical. Whether TRUE, it will return a numeric date otherwise return the date as a POSIXct object.
# NOT RUN { library(rgee) ee_reattach() ee_Initialize() eeDate <- ee$Date$fromYMD(1980,1,1) eedate_to_rdate(eeDate) # }
Run the code above in your browser using DataLab