def run(self, form_input):
        timestamps = form_input['timestamps']
        if type(timestamps) != list:
            timestamps = timestamps.split('\n')
        timestamps = [t.strip() for t in timestamps]
        output = [{'Timestamp' : timestamp,
                   'Datetime' : convert_epoch_time(timestamp)}
                  for timestamp in timestamps
                  if timestamp != '']
        return {'output_type' : 'table',
                'headers' : ['Timestamp', 'Datetime'],
                'output' : output}
dataset/ETHPy150Open mosesschwartz/scrypture/scrypture/demo_scripts/Utils/convert_epoch_time.py/WebAPI.run/original