Better decoding of netCDF times

This version avoids using the netCDF4 library unless strictly
necessary (e.g., for non-standard calendars).