code: def _get_decimal_from_datetime(time):
      '''
      As the decimal time function requires inputs in the form of numpy
      arrays need to convert each value in the datetime object  to a single
      numpy array
      '''
  
      # Get decimal seconds from seconds + microseconds
      temp_seconds = np.float(time.second) + (np.float(time.microsecond) / 1.0E6)
      return decimal_time(np.array([time.year], dtype=int),
                          np.array([time.month], dtype=int),
                          np.array([time.day], dtype=int),
                          np.array([time.hour], dtype=int),
                          np.array([time.minute], dtype=int),
                          np.array([temp_seconds], dtype=int)f _get_decimal_from_datetime(time):
      '''
      As the decimal time function requires inputs in the form of numpy
      arrays need to convert each value in the datetime object  to a single
      numpy array
      '''
  
      # Get decimal seconds from seconds + microseconds
      temp_seconds = np.float(time.second) + (np.float(time.microsecond) / 1.0E6)
      return decimal_time(np.array([time.year], dtype=int),
                          np.array([time.month], dtype=int),
                          np.array([time.day], dtype=int),
                          np.array([time.hour], dtype=int),
                          np.array([time.minute], dtype=int),
                          np.array([temp_seconds], dtype=int))
docs: As the decimal time function requires inputs in the form of numpy
      arrays need to convert each value in the datetime object  to a single
      numpy array