adding datetime to netcdf attributes