View source: R/time_dimensions.R
get_start_date | R Documentation |
Retrieves the first date of the time dimension from a netCDF file of daily data, given the units found in the netCDF attribute for the time dimension
get_start_date(time_units, time_zone = "UTC")
time_units |
The string description of the units of the time dimension e.g. 'days since 1980-01-01' or 'hours since 2010-08-01 13:00:00 +0000' |
time_zone |
the time zone to use for the returned value. |
A POSIXct object, origin of the time dimension as defined
x <- "hours since 2015-10-04 00:00:00 +1023"
get_start_date(x)
get_start_date(x,time_zone = 'UTC')
get_start_date(x,time_zone = 'Australia/Perth')
get_start_date(x,time_zone = 'Australia/Canberra')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.