I have a netcdf file with a timeseries and the time variable has the following typical metadata:
double time(time) ;
time:standard_name = \"t
I have just discovered that there is a package called ncdf.tools which has the function:
convertDateNcdf2R
which
converts a time vector from a netCDF file or a vector of Julian days (or seconds, minutes, hours) since a specified origin into a POSIXct R vector.
which is helpful. More details available here: https://rdrr.io/cran/ncdf.tools/man/convertDateNcdf2R.html