input: Write a python function to convert a datetime string to an array similar to a datetime object.
  ```python
  def timeToArray(timestring):
      try:
          splittedfull = timestring.split(' ')
          splittedday = splittedfull[0].split('-')
          splittedsec = splittedfull[1].split('.')
          splittedtime = splittedsec[0].split(':')
          datearray = splittedday + splittedtime
          datearray.append(splittedsec[1])
          datearray = list(map(int, datearray))
          return datearray
      except:
          return []
  
  assert timeToArray("2013-12-12 23:12:23.122324") == [2013, 12, 12, 23, 12, 23, 122324]
  assert timeToArray("2022-05-15 09:45:30.987654") == [2022, 5, 15, 9, 45, 30, 987654]
  assert timeToArray("1999-01-01 00:00:00.000000") == [1999, 1, 1, 0, 0, 0, 0]
output: def timeToArray(timestring):
      try:
          splittedfull = timestring.split(' ')
          splittedday = splittedfull[0].split('-')
          splittedsec = splittedfull[1].split('.')
          splittedtime = splittedsec[0].split(':')
          datearray = splittedday + splittedtime
          datearray.append(splittedsec[1])
          datearray = list(map(int, datearray))
          return datearray
      except:
          return []