| convert_time {rerddap} | R Documentation |
Convert a UDUNITS compatible time to ISO time
convert_time(n = NULL, isoTime = NULL, units = "seconds since 1970-01-01T00:00:00Z", url = "http://coastwatch.pfeg.noaa.gov", method = "local", ...)
n |
numeric; A unix time number. |
isoTime |
character; A string time representation. |
units |
character; Units to return. Default: "seconds since 1970-01-01T00:00:00Z" |
url |
Base URL of the ERDDAP server |
method |
(character) One of local or web. Local simply uses
|
... |
Curl args passed on to |
When method = "web" time zone is GMT/UTC
## Not run: # local conversions convert_time(n = 473472000) convert_time(isoTime = "1985-01-02T00:00:00Z") # using an erddap web service convert_time(n = 473472000, method = "web") convert_time(isoTime = "1985-01-02T00:00:00Z", method = "web") ## End(Not run)