View source: R/epoch2Datetime.R
epoch2Datetime | R Documentation |
Converts epoch time to a POSIXct/datetime. This is a common task when reading in data with dates from an ESRI REST API.
epoch2Datetime(epochDate, milliseconds = TRUE)
epochDate |
numeric vector with the epoch date |
milliseconds |
Should you complete millisecond conversion? Default is TRUE |
Vector of class POSIXct
First created in 2020-Sept in conjunction with my
pull request to esri2sf
to add the esri2df
function
Jacob Peterson
## Not run: # devtools::install_github('yonghah/esri2sf') library(esri2sf) esriData <- esri2sf::esri2df(url = "https://gis2.marc2.org/arcgis/rest/services/HumanServices/COVIDv2/MapServer/5") class(esriData$Date) class(epoch2Datetime(esriData$Date)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.