code: def synergy_to_datetime(time_qualifier, timeperiod):
      
      if time_qualifier == QUALIFIER_HOURLY:
          date_format = SYNERGY_HOURLY_PATTERN
      elif time_qualifier == QUALIFIER_DAILY:
          date_format = SYNERGY_DAILY_PATTERN
      elif time_qualifier == QUALIFIER_MONTHLY:
          date_format = SYNERGY_MONTHLY_PATTERN
      elif time_qualifier == QUALIFIER_YEARLY:
          date_format = SYNERGY_YEARLY_PATTERN
      elif time_qualifier == QUALIFIER_REAL_TIME:
          date_format = SYNERGY_SESSION_PATTERN
      else:
          raise ValueError('unknown time qualifier: {0}'.format(time_qualifier))
      return datetime.strptime(timeperiod, date_format).replace(tzinfo=None)
docs: method receives timeperiod in Synergy format YYYYMMDDHH and convert it to UTC _naive_ datetime