code: def unixtime(cdf_time, to_np=False):  # @NoSelf
          
          import datetime
          time_list = CDFepoch.breakdown(cdf_time, to_np=False)
  
          #Check if only one time was input into unixtime.
          #If so, turn the output of breakdown into a list for this function to work
          if hasattr(cdf_time, '__len__'):
             if len(cdf_time) == 1:
                 time_list = [time_list]
          else:
              time_list = [time_list]
  
          unixtime = []
          for t in time_list:
              date = ['year', 'month', 'day', 'hour', 'minute', 'second', 'microsecond']
              for i in range(0, len(t)):
                  if i > 7:
                      continue
                  elif i == 6:
                      date[i] = 1000*t[i]
                  elif i == 7:
                      date[i-1] += t[i]
                  else:
                      date[i] = t[i]
              unixtime.append(datetime.datetime(*date).replace(tzinfo=datetime.timezone.utc).timestamp())
          return np.array(unixtime) if to_np else unixtime
docs: Encodes the epoch(s) into seconds after 1970-01-01.  Precision is only
          kept to the nearest microsecond.
  
          If to_np is True, then the values will be returned in a numpy array.